Download

Are compute shader dispatches from the render thread synchronous?

I have a callback from the rendering thread based on GetResolvedSceneColorCallbacks that executes multiple compute shader dispatches one after the other. The shader dispatches rely on the previous ones having been finished before the next one is executed. Are the dispatches synchronous or are they stomping over the shared resources i.e. RWTextures? If they are not synchronous, how can I make them synchronous?

Thanks

Compute shader dispatch should be syncronous as far as I know. At least they are when using the Render Dependency Grap.