Manually transition swap chain image layouts
问题 Say I have a render pass with a single color attachment corresponding to the images of a swap chain. Usually, I would set the initialLayout and finalLayout fields of the VkAttachmentDescription to VK_IMAGE_LAYOUT_UNDEFINED and VK_IMAGE_LAYOUT_PRESENT_SRC_KHR , respectively. Now I would like to set the initialLayout to VK_IMAGE_LAYOUT_PRESENT_SRC_KHR instead and perform the transition of a swap chain image to this state manually before the render pass begins. I want to do this using memory