The example code for the VK_KHR_display and VK_KHR_display_swapchain extensions was removed from the appendix after revision 1.0.43. The display swapchain creation example code was ported to the cube demo that is shipped with the official Khronos SDK, and is being kept up-to-date in that location (see: https://github.com/KhronosGroup/Vulkan-Tools/blob/master/cube/cube.c).
VK_KHR_display_swapchainVK_KHR_swapchain and VK_KHR_display| Modifier and Type | Field and Description |
|---|---|
| public static final int | VK_ERROR_INCOMPATIBLE_DISPLAY_KHR
Extends |
| public static final String | VK_KHR_DISPLAY_SWAPCHAIN_EXTENSION_NAME
The extension name. |
| public static final int | VK_KHR_DISPLAY_SWAPCHAIN_SPEC_VERSION
The extension specification version. |
| public static final int | VK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR
Extends |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | nvkCreateSharedSwapchainsKHR(VkDevice device, int
the number of swapchains to create. swapchainCount, long pCreateInfos, long pAllocator, long pSwapchains)Unsafe version of: |
| public static int | vkCreateSharedSwapchainsKHR(VkDevice
the device to create the swapchains for. device, VkSwapchainCreateInfoKHR.a pointer to an array of pCreateInfos,VkSwapchainCreateInfoKHR structures specifying the parameters of the created swapchains.the allocator used for host memory allocated for the swapchain objects when there is no more specific allocator available (see Memory Allocation). pAllocator, LongBuffer a pointer to an array of pSwapchains)VkSwapchainKHR handles in which the created swapchain objects will be returned.Create multiple swapchains that share presentable images. |
| public static int | vkCreateSharedSwapchainsKHR(VkDevice device, VkSwapchainCreateInfoKHR.
Array version of: |
| VK_ERROR_INCOMPATIBLE_DISPLAY_KHR | back to summary |
|---|---|
| public static final int VK_ERROR_INCOMPATIBLE_DISPLAY_KHR Extends | |
| VK_KHR_DISPLAY_SWAPCHAIN_EXTENSION_NAME | back to summary |
|---|---|
| public static final String VK_KHR_DISPLAY_SWAPCHAIN_EXTENSION_NAME The extension name. | |
| VK_KHR_DISPLAY_SWAPCHAIN_SPEC_VERSION | back to summary |
|---|---|
| public static final int VK_KHR_DISPLAY_SWAPCHAIN_SPEC_VERSION The extension specification version. | |
| VK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR Extends | |
| KHRDisplaySwapchain | back to summary |
|---|---|
| protected KHRDisplaySwapchain() | |
| nvkCreateSharedSwapchainsKHR | back to summary |
|---|---|
| public static int nvkCreateSharedSwapchainsKHR(VkDevice device, int swapchainCount, long pCreateInfos, long pAllocator, long pSwapchains) Unsafe version of:
| |
| vkCreateSharedSwapchainsKHR | back to summary |
|---|---|
| public static int vkCreateSharedSwapchainsKHR(VkDevice device, VkSwapchainCreateInfoKHR. Create multiple swapchains that share presentable images. C SpecificationWhen the
Description
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 Valid Usage (Implicit)
Host Synchronization
Return Codes
See Also
| |
| vkCreateSharedSwapchainsKHR | back to summary |
|---|---|
| public static int vkCreateSharedSwapchainsKHR(VkDevice device, VkSwapchainCreateInfoKHR. Array version of:
| |