To record a pipeline barrier, call:
// Provided by VK_VERSION_1_3 void vkCmdPipelineBarrier2( VkCommandBuffer commandBuffer, const VkDependencyInfo* pDependencyInfo);
or the equivalent command
// Provided by VK_KHR_synchronization2 void vkCmdPipelineBarrier2KHR( VkCommandBuffer commandBuffer, const VkDependencyInfo* pDependencyInfo);
commandBufferis the command buffer into which the command is recorded.
pDependencyInfois a pointer to a VkDependencyInfo structure defining the scopes of this operation.
When vkCmdPipelineBarrier2 is submitted to a queue, it defines memory dependencies between commands that were submitted before it, and those submitted after it.
vkCmdPipelineBarrier2 is recorded within a render pass instance,
the synchronization scopes are
operations within the same subpass.
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.