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:
parent
f735a89518
commit
214a45099d
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue