Skip to content

Commit 214a450

Browse files
authored
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.
1 parent f735a89 commit 214a450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/dynamicrenderingmultisampling/dynamicrenderingmultisampling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ class VulkanExample : public VulkanExampleBase
261261
swapChain.images[i],
262262
VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT,
263263
0,
264-
VK_IMAGE_LAYOUT_UNDEFINED,
264+
VK_IMAGE_LAYOUT_GENERAL,
265265
VK_IMAGE_LAYOUT_PRESENT_SRC_KHR,
266266
VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT,
267267
VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT,

0 commit comments

Comments
 (0)