Replies: 1 comment
-
|
I think that this is possible by specifying that the flags are empty (no bits set). This can be done with https://docs.rs/wgpu/latest/wgpu/struct.ColorWrites.html#method.empty . |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Greetings!
I have a question regardless
wgpu::ColorWrites. Both wgpu and webgpu don't define a NONE variant, which would allow to not render to any color channels at all. It's really useful for only drawing to stencil/depth buffer.This appears to be working correctly, at least on the vulkan backend. Could this lead to UB or other unforeseen consequences?
If so, is there a better solution? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions