internal/graphicsdriver/metal/mtl: Bug fix: Test failure

Closes #1696
This commit is contained in:
Hajime Hoshi 2021-07-05 21:28:22 +09:00
parent 92b3dab33c
commit 63a00f6171

View File

@ -132,6 +132,7 @@ fragment float4 FragmentShader(Vertex in [[stage_in]]) {
rpld.VertexFunction = vs rpld.VertexFunction = vs
rpld.FragmentFunction = fs rpld.FragmentFunction = fs
rpld.ColorAttachments[0].PixelFormat = mtl.PixelFormatRGBA8UNorm rpld.ColorAttachments[0].PixelFormat = mtl.PixelFormatRGBA8UNorm
rpld.ColorAttachments[0].WriteMask = mtl.ColorWriteMaskAll
rps, err := device.MakeRenderPipelineState(rpld) rps, err := device.MakeRenderPipelineState(rpld)
if err != nil { if err != nil {
log.Fatalln(err) log.Fatalln(err)