Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
|
Vulkan requires the programmer to assure correct synchronization. Any commands submitted via a command buffer are generally allowed to be executed out-of-order. Pipeline barriers are necessary in certain situations to assure data required is in the correct layout and available when the graphics processor accesses it.
The below listed resources are considered constants during rendering, so you are not required to protect access to these with pipeline barriers
VK_IMAGELAYOUT_UNDEFINED
), the driver may discard all image data on layout transition.