Hello.
I am using two compute shader for computing quite large texture.
My process can be summarized as below steps.
1. Pass 'Texture 1' to 'Compute shader A'.
2. 'Compute shader A' produces new 'Texture 2'
3. 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?
↧