metal: initial love.graphics.dispatchThreadgroups implementation

This commit is contained in:
Alex Szpakowski
2021-12-24 23:04:44 -04:00
parent a03041043f
commit c6e4cfdc64
4 changed files with 142 additions and 2 deletions
+2
View File
@@ -107,6 +107,7 @@ public:
void setVideoTextures(love::graphics::Texture *ytexture, love::graphics::Texture *cbtexture, love::graphics::Texture *crtexture) override;
id<MTLRenderPipelineState> getCachedRenderPipeline(const RenderPipelineKey &key);
id<MTLComputePipelineState> getComputePipeline() const { return computePipeline; }
static int getUniformBufferBinding();
const std::vector<TextureBinding> &getTextureBindings() const { return textureBindings; }
@@ -144,6 +145,7 @@ private:
std::vector<BufferBinding> bufferBindings;
std::unordered_map<RenderPipelineKey, const void *, RenderPipelineHasher> cachedRenderPipelines;
id<MTLComputePipelineState> computePipeline;
}; // Metal