I have two command buffers that draw stuff. I am certain that I need synchronization, otherwise they interfere with each other. For instance, my one command buffer is for drawing high resolution screenshots. Some times it works, but most times it spits out a black image.
I've tried vkQueueWaitIdle, vkDeviceWaitIdle, image memory barriers, pipeline barriers, and fences. I cannot get anything to work. Any ideas?
The code is at: