mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 21:05:50 +12:00
add: render target caches
This commit is contained in:
parent
67e3a1d8eb
commit
53c9611ac2
4 changed files with 85 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "renderer.hpp"
|
||||
#include "texture.hpp"
|
||||
#include "render_target.hpp"
|
||||
// HACK: use the OpenGL cache
|
||||
#include "../renderer_gl/surface_cache.hpp"
|
||||
|
||||
|
@ -34,6 +35,8 @@ class RendererMTL final : public Renderer {
|
|||
MTL::CommandQueue* commandQueue;
|
||||
|
||||
// Caches
|
||||
SurfaceCache<Metal::Texture, 16, true> colorRenderTargetCache;
|
||||
SurfaceCache<Metal::Texture, 16, true> depthStencilRenderTargetCache;
|
||||
SurfaceCache<Metal::Texture, 256, true> textureCache;
|
||||
|
||||
// HACK
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue