- Home /
Pass ComputeBuffer to another ComputeShader
Hello.
I am using two compute shader for computing quite large texture. My process can be summarized as below steps.
Pass 'Texture 1' to 'Compute shader A'.
'Compute shader A' produces new 'Texture 2'
Then 'Compute shader B' uses 'Texture 2' to produce new 'Texture 3'
However, I wonder whether passing 'Texture 2' from 'shader A' to 'shader B' is done directly on GPU or it passes CPU to be passed to 'shader B'.
If it passes CPU to be passed to 'shader B', it might cost some time. Is there an way to directly pass Compute Buffer or texture to other compute shader?
Your answer
Follow this Question
Related Questions
Custom colliders on the GPU 0 Answers
GPU texture caching 0 Answers
Assigning UV Map to model at runtime 0 Answers
Don't load Mip 0 for certain textures based on a condition? 0 Answers
GPU instancing and collision detection in flocking behaviour simulation 0 Answers