VK_KHR_display_swapchain extension is enabled, multiple
swapchains that share presentable images are created by calling:
deviceis the device to create the swapchains for.
swapchainCountis the number of swapchains to create.
pCreateInfosis a pointer to an array of VkSwapchainCreateInfoKHR structures specifying the parameters of the created swapchains.
pAllocatoris the allocator used for host memory allocated for the swapchain objects when there is no more specific allocator available (see Memory Allocation).
pSwapchainsis a pointer to an array of VkSwapchainKHR handles in which the created swapchain objects will be returned.
The swapchain creation parameters that affect the properties and number of
presentable images must match between all the swapchains.
If the displays used by any of the swapchains do not use the same
presentable image layout or are incompatible in a way that prevents sharing
images, swapchain creation will fail with the result code
If any error occurs, no swapchains will be created.
Images presented to multiple swapchains must be re-acquired from all of
them before transitioning away from
After destroying one or more of the swapchains, the remaining swapchains and
the presentable images can continue to be used.
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.
Copyright (c) 2014-2020 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.