I am currently working on a project where I need to process a Texture in a specific order within one pipeline for rendering a single frame. The required order is: Compute Shader (GPU) → CPU → Compute Shader (GPU).
My process requires the first Compute Shader (GPU) to complete before the Texture is passed to the CPU. Once the CPU calculations are completed, the Texture then needs to be passed to the second Compute Shader (GPU).
Would you have any suggestions on how to accomplish this? Is there a signal or a method that I can use to know when the GPU’s calculations are completed?
I appreciate any guidance or advice you can provide.