Update the old layout of swapchain images

The swapchain image is already used as the resolve target with the general image layout, after that we should specify the old layout as VK_IMAGE_LAYOUT_GENERAL instead of VK_IMAGE_LAYOUT_UNDEFINED.
This commit is contained in:
Wenqing Li 2025-07-08 12:00:57 +08:00 committed by GitHub
parent f735a89518
commit 214a45099d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -261,7 +261,7 @@ public:
swapChain.images[i],
VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT,
0,
VK_IMAGE_LAYOUT_UNDEFINED,
VK_IMAGE_LAYOUT_GENERAL,
VK_IMAGE_LAYOUT_PRESENT_SRC_KHR,
VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT,
VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT,