Class KHRVulkanSwapchainFormatList
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 an application enables and uses XR_KHR_vulkan_enable2 as the graphics binding extension, the runtime must add VK_KHR_image_format_list to the list of extensions enabled in CreateVulkanDeviceKHR.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsXrStructureType. -
Method Summary
-
Field Details
-
XR_KHR_vulkan_swapchain_format_list_SPEC_VERSION
public static final int XR_KHR_vulkan_swapchain_format_list_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_KHR_VULKAN_SWAPCHAIN_FORMAT_LIST_EXTENSION_NAME
The extension name.- See Also:
-
XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR
public static final int XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHRExtendsXrStructureType.- See Also:
-