Skip to content

Instantly share code, notes, and snippets.

View chrisvarns's full-sized avatar

Chris Varnz chrisvarns

View GitHub Profile
@chrisvarns
chrisvarns / gist:b4a5dbd1a09545948261d8c650070383
Last active February 2, 2023 07:07
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;