implement sampler cache

This commit is contained in:
Samuliak 2024-08-15 11:44:06 +02:00
parent 9982ac7acb
commit d79d7fea63
7 changed files with 181 additions and 122 deletions

View file

@ -58,9 +58,7 @@ MTL::RenderPipelineState* MetalPipelineCache::GetPipelineState(const LatteFetchS
uint64 stateHash = CalculatePipelineHash(fetchShader, vertexShader, pixelShader, activeFBO, lcr);
auto& pipeline = m_pipelineCache[stateHash];
if (pipeline)
{
return pipeline;
}
// Vertex descriptor
MTL::VertexDescriptor* vertexDescriptor = MTL::VertexDescriptor::alloc()->init();