In Vulkan, suppose I have two render passes:
- the first outputs to an image as its color attachment.
- the second samples from that same image from its fragment shaders (ie through a combined image sampler).
The render passes are submitted in that order.
What's the correct way to synchronize these two render passes so the second doesn't read before the first has written?
It is necessary and/or sufficient to create an image pipeline barrier on the image in between them?