mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
Clang format and other fixes
This commit is contained in:
parent
cb9fdc7a26
commit
caaa9914fd
1 changed files with 0 additions and 16 deletions
|
@ -105,22 +105,6 @@ protected:
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<T> GetInRange(Tegra::GPUVAddr addr, size_t size) {
|
|
||||||
std::vector<T> objects;
|
|
||||||
if (size == 0)
|
|
||||||
return objects;
|
|
||||||
|
|
||||||
const ObjectInterval interval{addr, addr + size};
|
|
||||||
for (auto& pair : boost::make_iterator_range(object_cache.equal_range(interval))) {
|
|
||||||
for (auto& cached_object : pair.second) {
|
|
||||||
if (!cached_object)
|
|
||||||
continue;
|
|
||||||
objects.push_back(cached_object);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return objects;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Register an object into the cache
|
/// Register an object into the cache
|
||||||
void Register(const T& object) {
|
void Register(const T& object) {
|
||||||
object->SetIsRegistered(true);
|
object->SetIsRegistered(true);
|
||||||
|
|
Loading…
Reference in a new issue