metal: initial sampler cache implementation

This commit is contained in:
Alex Szpakowski
2020-04-26 09:09:26 -03:00
parent 643a046d64
commit ceb1e4459b
3 changed files with 42 additions and 23 deletions
+4
View File
@@ -23,6 +23,8 @@
#include "graphics/Graphics.h"
#include "Metal.h"
#include <map>
@class CAMetalLayer;
@protocol CAMetalDrawable;
@@ -187,6 +189,8 @@ private:
uint32 dirtyRenderState;
bool windowHasStencil;
std::map<uint64, void *> cachedSamplers;
}; // Graphics
} // metal