render: Workaround wgpu write-only stencil testing issue - fixes #1062

This commit is contained in:
Nathan Adams 2020-08-30 23:49:32 +02:00 committed by Mike Welsh
parent 8943623618
commit a191c79fca
1 changed files with 3 additions and 3 deletions

View File

@ -188,7 +188,7 @@ fn create_color_pipelines(
depth_fail_op: wgpu::StencilOperation::Keep, depth_fail_op: wgpu::StencilOperation::Keep,
pass_op: wgpu::StencilOperation::Replace, pass_op: wgpu::StencilOperation::Replace,
}, },
read_mask: 0, read_mask: 0xff,
write_mask: 1 << i, write_mask: 1 << i,
}, },
}), }),
@ -356,7 +356,7 @@ fn create_bitmap_pipeline(
depth_fail_op: wgpu::StencilOperation::Keep, depth_fail_op: wgpu::StencilOperation::Keep,
pass_op: wgpu::StencilOperation::Replace, pass_op: wgpu::StencilOperation::Replace,
}, },
read_mask: 0, read_mask: 0xff,
write_mask: 1 << i, write_mask: 1 << i,
}, },
}), }),
@ -518,7 +518,7 @@ fn create_gradient_pipeline(
depth_fail_op: wgpu::StencilOperation::Keep, depth_fail_op: wgpu::StencilOperation::Keep,
pass_op: wgpu::StencilOperation::Replace, pass_op: wgpu::StencilOperation::Replace,
}, },
read_mask: 0, read_mask: 0xff,
write_mask: 1 << i, write_mask: 1 << i,
}, },
}), }),