Skip to content

Commit

Permalink
Fix sync hazard on attachment loading
Browse files Browse the repository at this point in the history
  • Loading branch information
xCollateral committed Aug 21, 2024
1 parent 6394bf7 commit c1b7a1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public static void transitionImageLayout(MemoryStack stack, VkCommandBuffer comm
destinationStage = VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT;
}
case VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL -> {
dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT;
dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT | VK_ACCESS_COLOR_ATTACHMENT_READ_BIT;
destinationStage = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT;
}
case VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL -> {
Expand Down

0 comments on commit c1b7a1e

Please sign in to comment.