MetalDevice: Forgot a mutability parameter

This commit is contained in:
Stenzek 2023-08-26 21:51:53 +10:00
parent 106c13635b
commit 779e78ae61

View file

@ -850,6 +850,7 @@ std::unique_ptr<GPUPipeline> MetalDevice::CreatePipeline(const GPUPipeline::Grap
// Metal-specific stuff // Metal-specific stuff
desc.vertexBuffers[0].mutability = MTLMutabilityImmutable; desc.vertexBuffers[0].mutability = MTLMutabilityImmutable;
desc.fragmentBuffers[0].mutability = MTLMutabilityImmutable;
if (!config.input_layout.vertex_attributes.empty()) if (!config.input_layout.vertex_attributes.empty())
desc.vertexBuffers[1].mutability = MTLMutabilityImmutable; desc.vertexBuffers[1].mutability = MTLMutabilityImmutable;
if (config.layout == GPUPipeline::Layout::SingleTextureBufferAndPushConstants) if (config.layout == GPUPipeline::Layout::SingleTextureBufferAndPushConstants)