Vulkan has the VK_KHR_image_format_list extension which allows applications to tell the vkCreateImage function which formats the application intends to use when VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT is specified. This OpenXR extension exposes that Vulkan extension to OpenXR applications. In the same way that a Vulkan-based application can pass a VkImageFormatListCreateInfo struct to the vkCreateImage function, an OpenXR application can pass an identically configured XrVulkanSwapchainFormatListCreateInfoKHR structure to CreateSwapchain.
Applications using this extension to specify more than one swapchain format must create OpenXR swapchains with the SWAPCHAIN_USAGE_MUTABLE_FORMAT_BIT bit set.
Runtimes implementing this extension must support the XR_KHR_vulkan_enable or the XR_KHR_vulkan_enable2 extension. When XR_KHR_vulkan_enable is used, the runtime must add VK_KHR_image_format_list to the list of extensions enabled in CreateVulkanDeviceKHR.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | XR_KHR_VULKAN_SWAPCHAIN_FORMAT_LIST_EXTENSION_NAME
The extension name. |
| public static final int | XR_KHR_vulkan_swapchain_format_list_SPEC_VERSION
The extension specification version. |
| public static final int | XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR
Extends |
| Access | Constructor and Description |
|---|---|
| private |
| XR_KHR_VULKAN_SWAPCHAIN_FORMAT_LIST_EXTENSION_NAME | back to summary |
|---|---|
| public static final String XR_KHR_VULKAN_SWAPCHAIN_FORMAT_LIST_EXTENSION_NAME The extension name. | |
| XR_KHR_vulkan_swapchain_format_list_SPEC_VERSION | back to summary |
|---|---|
| public static final int XR_KHR_vulkan_swapchain_format_list_SPEC_VERSION The extension specification version. | |
| XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR | back to summary |
|---|---|
| public static final int XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR Extends | |
| KHRVulkanSwapchainFormatList | back to summary |
|---|---|
| private KHRVulkanSwapchainFormatList() | |