metal: initial (bad/slow) setShader tracking

This commit is contained in:
Alex Szpakowski
2021-03-29 18:28:06 -03:00
parent 3a1c85c13e
commit aad0810e11
5 changed files with 45 additions and 3 deletions
+3
View File
@@ -96,6 +96,8 @@ public:
bool usesGLSLES() const override;
RendererInfo getRendererInfo() const override;
void attachShader(love::graphics::Shader *shader);
id<MTLCommandBuffer> useCommandBuffer();
id<MTLCommandBuffer> getCommandBuffer() const { return commandBuffer; }
void submitCommandBuffer();
@@ -194,6 +196,7 @@ private:
MTLRenderPassDescriptor *passDesc;
uint32 dirtyRenderState;
VertexAttributes lastVertexAttributes;
bool windowHasStencil;
StreamBuffer *uniformBuffer;