Skip to content

Instantly share code, notes, and snippets.

@chrisvarns
Last active February 2, 2023 07:07
Show Gist options
  • Save chrisvarns/b4a5dbd1a09545948261d8c650070383 to your computer and use it in GitHub Desktop.
Save chrisvarns/b4a5dbd1a09545948261d8c650070383 to your computer and use it in GitHub Desktop.
VKSubpassDependency
VkSubpassDependency dependency = {};
// In subpass zero...
dependency.dstSubpass = 0;
// ... at this pipeline stage ...
dependency.dstStageMask = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT;
// ... wait before performing these operations ...
dependency.dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT;
// ... until all operations of this type ...
dependency.srcAccessMask = 0;
// ... at these stages ...
dependency.srcStageMask = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT;
// ... occuring in submission order prior to vkCmdBeginRenderPass ...
dependency.srcSubpass = VK_SUBPASS_EXTERNAL;
// ... have completed execution.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment