[GPU] Add texture surface cache eviction

Implemented as a simple ring buffer evicting the oldest entry for now.
This commit is contained in:
Sky 2023-07-06 08:42:34 -07:00
parent 5835069a9d
commit 255947b2fc
3 changed files with 19 additions and 7 deletions

View file

@ -45,7 +45,7 @@ class Renderer {
SurfaceCache<DepthBuffer, 10> depthBufferCache;
SurfaceCache<ColourBuffer, 10> colourBufferCache;
SurfaceCache<Texture, 256> textureCache;
SurfaceCache<Texture, 256, true> textureCache;
OpenGL::uvec2 fbSize; // The size of the framebuffer (ie both the colour and depth buffer)'