mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
metal: initial (bad/slow) setShader tracking
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user