do the copy on the GPU

This commit is contained in:
Samuliak 2024-07-06 09:58:20 +02:00
parent 80bd8f54c3
commit 42fc2bb490
3 changed files with 39 additions and 18 deletions

View file

@ -51,6 +51,7 @@ class RendererMTL final : public Renderer {
MTL::SamplerState* nearestSampler;
MTL::SamplerState* linearSampler;
MTL::Texture* lightLUTTextureArray;
MTL::DepthStencilState* defaultDepthStencilState;
// Pipelines
MTL::RenderPipelineState* displayPipeline;
@ -104,5 +105,5 @@ class RendererMTL final : public Renderer {
Metal::Texture& getTexture(Metal::Texture& tex);
void setupTextureEnvState(MTL::RenderCommandEncoder* encoder);
void bindTexturesToSlots(MTL::RenderCommandEncoder* encoder);
void updateLightingLUT();
void updateLightingLUT(MTL::RenderCommandEncoder* encoder);
};