Skip to content

Extract 3D image from GPU when applied with compute shader #14516

Closed Answered by 68317fa2
68317fa2 asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you @bugsweeper! Yeah, I also saw this example. I decided to use the gpu readback example from bevy instead of the headless renderer example, because I am using 3d images and with buffers I have a much more freedom with the format and the render passes, etc. So now I just write from the compute shader to the buffer instead of applying the changes directly to the texture before copying and sending the buffer to the gpu. I wonder, if it is better to then copy the buffer back into a new image to the gpu or use 2 discrete images, which live on the gpu and are getting swapped out. I will use the last method for now, just if anyone sees this.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by 68317fa2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants