render: Workaround wgpu write-only stencil testing issue - fixes #1062
This commit is contained in:
parent
8943623618
commit
a191c79fca
|
@ -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,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue