Skip to content

Commit

Permalink
Fix bug in sync2 example (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaWillems authored Sep 16, 2024
1 parent 2303f7a commit 3e99487
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions chapters/synchronization_examples.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1534,10 +1534,15 @@ VkSubmitInfo2KHR renderingSubmitInfo = {
vkQueueSubmit2KHR(renderQueue, &renderingSubmitInfo, ...);
VkSemaphoreSubmitInfoKHR prePresentWaitInfo = {
...
.semaphore = renderingCompleteSemaphore,
.stageMask = VK_PIPELINE_STAGE_2_ALL_COMMANDS_BIT_KHR};
VkSemaphoreSubmitInfoKHR prePresentCompleteInfo = {
...
.semaphore = prePresentCompleteSemaphore,
.stageMask = VK_PIPELINE_STAGE_2_COLOR_ATTACHMENT_OUTPUT_BIT_KHR};
.stageMask = VK_PIPELINE_STAGE_2_ALL_COMMANDS_BIT_KHR};
VkCommandBufferSubmitInfoKHR prePresentCommandBufferInfo = {
...
Expand All @@ -1547,7 +1552,7 @@ VkCommandBufferSubmitInfoKHR prePresentCommandBufferInfo = {
VkSubmitInfo2KHR prePresentSubmitInfo = {
...
.waitSemaphoreInfoCount = 1,
.pWaitSemaphoreInfos = &renderingCompleteInfo,
.pWaitSemaphoreInfos = &prePresentWaitInfo,
.commandBufferInfoCount = 1,
.pCommandBufferInfos = &prePresentCommandBufferInfo,
.signalSemaphoreInfoCount = 1,
Expand Down

0 comments on commit 3e99487

Please sign in to comment.