2 compute passes, write then read from integer texture? #2742
Answered
by
cwfitzgerald
OneKnightOnly
asked this question in
Q&A
-
I'm new to wgpu and trying to wrap my head around layouts and bind groups. I have a compute shader with writeonly access that writes to an integer texture, how can I then read from that same texture in a second compute shader? do I need to bind a new bind group and layout? |
Beta Was this translation helpful? Give feedback.
Answered by
cwfitzgerald
Jun 7, 2022
Replies: 1 comment
-
Yeah, you'd need a new bind group and bind group layout that store the image as a non-storage image, which you can then read on the shader using imageLoad. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
OneKnightOnly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, you'd need a new bind group and bind group layout that store the image as a non-storage image, which you can then read on the shader using imageLoad.