mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 04:29:13 +12:00
do the copy on the GPU
This commit is contained in:
parent
80bd8f54c3
commit
42fc2bb490
3 changed files with 39 additions and 18 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue