Skip to content

Commit

Permalink
MetalDevice: Forgot a mutability parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Aug 26, 2023
1 parent 106c136 commit 779e78a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/metal_device.mm
Expand Up @@ -850,6 +850,7 @@ static void DumpShader(u32 n, const std::string_view& suffix, const std::string_

// Metal-specific stuff
desc.vertexBuffers[0].mutability = MTLMutabilityImmutable;
desc.fragmentBuffers[0].mutability = MTLMutabilityImmutable;
if (!config.input_layout.vertex_attributes.empty())
desc.vertexBuffers[1].mutability = MTLMutabilityImmutable;
if (config.layout == GPUPipeline::Layout::SingleTextureBufferAndPushConstants)
Expand Down

0 comments on commit 779e78a

Please sign in to comment.