Quantcast
Channel: Questions in topic: "compute shader"
Viewing all articles
Browse latest Browse all 287

Pass ComputeBuffer to another ComputeShader

$
0
0
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?

Viewing all articles
Browse latest Browse all 287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>