To record a pipeline barrier, call:
// Provided by VK_KHR_synchronization2 void vkCmdPipelineBarrier2KHR( VkCommandBuffer commandBuffer, const VkDependencyInfoKHR* pDependencyInfo);
commandBufferis the command buffer into which the command is recorded.
pDependencyInfois a pointer to a VkDependencyInfoKHR structure defining the scopes of this operation.
When vkCmdPipelineBarrier2KHR is submitted to a queue, it defines memory dependencies between commands that were submitted before it, and those submitted after it.
vkCmdPipelineBarrier2KHR 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.