Using this extension, a Vulkan-based application can pass through additional VkImageCreateFlags or VkImageUsageFlags by chaining an XrVulkanSwapchainCreateInfoMETA structure to the XrSwapchainCreateInfo when calling CreateSwapchain.
The application is still encouraged to use the common bits like SWAPCHAIN_USAGE_TRANSFER_SRC_BIT defined in XrSwapchainUsageFlags. However, the application may present both SWAPCHAIN_USAGE_TRANSFER_SRC_BIT in XrSwapchainUsageFlags and VK_IMAGE_USAGE_TRANSFER_SRC_BIT in VkImageUsageFlags at the same time.
The application must enable the corresponding Vulkan extensions before requesting additional Vulkan flags. For example, VK_EXT_fragment_density_map device extension must be enabled if an application requests VK_IMAGE_CREATE_SUBSAMPLED_BIT_EXT bit. Otherwise, it may cause undefined behavior, including an application crash.
Runtimes that implement this extension must support the XR_KHR_vulkan_enable or the XR_KHR_vulkan_enable2 extension.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | XR_META_VULKAN_SWAPCHAIN_CREATE_INFO_EXTENSION_NAME
The extension name. |
| public static final int | XR_META_vulkan_swapchain_create_info_SPEC_VERSION
The extension specification version. |
| public static final int | XR_TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META
Extends |
| Access | Constructor and Description |
|---|---|
| private |
| XR_META_VULKAN_SWAPCHAIN_CREATE_INFO_EXTENSION_NAME | back to summary |
|---|---|
| public static final String XR_META_VULKAN_SWAPCHAIN_CREATE_INFO_EXTENSION_NAME The extension name. | |
| XR_META_vulkan_swapchain_create_info_SPEC_VERSION | back to summary |
|---|---|
| public static final int XR_META_vulkan_swapchain_create_info_SPEC_VERSION The extension specification version. | |
| XR_TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META | back to summary |
|---|---|
| public static final int XR_TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META Extends | |
| METAVulkanSwapchainCreateInfo | back to summary |
|---|---|
| private METAVulkanSwapchainCreateInfo() | |