Class METAVulkanSwapchainCreateInfo
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsXrStructureType. -
Method Summary
-
Field Details
-
XR_META_vulkan_swapchain_create_info_SPEC_VERSION
public static final int XR_META_vulkan_swapchain_create_info_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_META_VULKAN_SWAPCHAIN_CREATE_INFO_EXTENSION_NAME
The extension name.- See Also:
-
XR_TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META
public static final int XR_TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_METAExtendsXrStructureType.- See Also:
-