Last active
February 2, 2023 07:07
-
-
Save chrisvarns/b4a5dbd1a09545948261d8c650070383 to your computer and use it in GitHub Desktop.
VKSubpassDependency
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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