diff --git a/internal/graphicsdriver/metal/mtl/example_test.go b/internal/graphicsdriver/metal/mtl/example_test.go index b66904ead..2326ab513 100644 --- a/internal/graphicsdriver/metal/mtl/example_test.go +++ b/internal/graphicsdriver/metal/mtl/example_test.go @@ -132,6 +132,7 @@ fragment float4 FragmentShader(Vertex in [[stage_in]]) { rpld.VertexFunction = vs rpld.FragmentFunction = fs rpld.ColorAttachments[0].PixelFormat = mtl.PixelFormatRGBA8UNorm + rpld.ColorAttachments[0].WriteMask = mtl.ColorWriteMaskAll rps, err := device.MakeRenderPipelineState(rpld) if err != nil { log.Fatalln(err)