Merge pull request #73 from skylersaleh/SurfaceCacheRing

[GPU] Add texture surface cache eviction
This commit is contained in:
wheremyfoodat
2023-07-07 12:45:08 +03:00
committed by GitHub
3 changed files with 43 additions and 23 deletions

View File

@@ -33,10 +33,11 @@ void Texture::setNewConfig(u32 cfg) {
}
void Texture::free() {
valid = false;
valid = false;
if (texture.exists())
Helpers::panic("Make this texture free itself");
if (texture.exists()) {
texture.free();
}
}
u64 Texture::sizeInBytes() {