mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 04:36:07 +00:00
external: Update OpenXR includes to 1.0.13
This commit is contained in:
parent
f8a4f35572
commit
3e4f9d5b6f
97
src/external/openxr_includes/openxr/openxr.h
vendored
97
src/external/openxr_includes/openxr/openxr.h
vendored
|
@ -25,7 +25,7 @@ extern "C" {
|
|||
((((major) & 0xffffULL) << 48) | (((minor) & 0xffffULL) << 32) | ((patch) & 0xffffffffULL))
|
||||
|
||||
// OpenXR current version number.
|
||||
#define XR_CURRENT_API_VERSION XR_MAKE_VERSION(1, 0, 12)
|
||||
#define XR_CURRENT_API_VERSION XR_MAKE_VERSION(1, 0, 13)
|
||||
|
||||
#define XR_VERSION_MAJOR(version) (uint16_t)(((uint64_t)(version) >> 48)& 0xffffULL)
|
||||
#define XR_VERSION_MINOR(version) (uint16_t)(((uint64_t)(version) >> 32) & 0xffffULL)
|
||||
|
@ -186,6 +186,8 @@ typedef enum XrResult {
|
|||
XR_ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT = -1000039001,
|
||||
XR_ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT = -1000053000,
|
||||
XR_ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT = -1000055000,
|
||||
XR_ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB = -1000101000,
|
||||
XR_ERROR_COLOR_SPACE_UNSUPPORTED_FB = -1000108000,
|
||||
XR_RESULT_MAX_ENUM = 0x7FFFFFFF
|
||||
} XrResult;
|
||||
|
||||
|
@ -310,6 +312,9 @@ typedef enum XrStructureType {
|
|||
XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR = 1000090001,
|
||||
XR_TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR = 1000090003,
|
||||
XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR = 1000091000,
|
||||
XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB = 1000101000,
|
||||
XR_TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB = 1000108000,
|
||||
XR_TYPE_BINDING_MODIFICATIONS_KHR = 1000120000,
|
||||
XR_TYPE_GRAPHICS_BINDING_VULKAN2_KHR = XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR,
|
||||
XR_TYPE_SWAPCHAIN_IMAGE_VULKAN2_KHR = XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR,
|
||||
XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN2_KHR = XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR,
|
||||
|
@ -1448,6 +1453,23 @@ typedef struct XrCompositionLayerEquirect2KHR {
|
|||
|
||||
|
||||
|
||||
#define XR_KHR_binding_modification 1
|
||||
#define XR_KHR_binding_modification_SPEC_VERSION 1
|
||||
#define XR_KHR_BINDING_MODIFICATION_EXTENSION_NAME "XR_KHR_binding_modification"
|
||||
typedef struct XrBindingModificationBaseHeaderKHR {
|
||||
XrStructureType type;
|
||||
const void* XR_MAY_ALIAS next;
|
||||
} XrBindingModificationBaseHeaderKHR;
|
||||
|
||||
typedef struct XrBindingModificationsKHR {
|
||||
XrStructureType type;
|
||||
const void* XR_MAY_ALIAS next;
|
||||
uint32_t bindingModificationCount;
|
||||
const XrBindingModificationBaseHeaderKHR* const* bindingModifications;
|
||||
} XrBindingModificationsKHR;
|
||||
|
||||
|
||||
|
||||
#define XR_EXT_performance_settings 1
|
||||
#define XR_EXT_performance_settings_SPEC_VERSION 1
|
||||
#define XR_EXT_PERFORMANCE_SETTINGS_EXTENSION_NAME "XR_EXT_performance_settings"
|
||||
|
@ -2184,6 +2206,79 @@ typedef struct XrInteractionProfileAnalogThresholdVALVE {
|
|||
#define XR_MND_swapchain_usage_input_attachment_bit_SPEC_VERSION 2
|
||||
#define XR_MND_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_EXTENSION_NAME "XR_MND_swapchain_usage_input_attachment_bit"
|
||||
|
||||
|
||||
#define XR_FB_display_refresh_rate 1
|
||||
#define XR_FB_display_refresh_rate_SPEC_VERSION 1
|
||||
#define XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME "XR_FB_display_refresh_rate"
|
||||
typedef struct XrEventDataDisplayRefreshRateChangedFB {
|
||||
XrStructureType type;
|
||||
const void* XR_MAY_ALIAS next;
|
||||
float fromDisplayRefreshRate;
|
||||
float toDisplayRefreshRate;
|
||||
} XrEventDataDisplayRefreshRateChangedFB;
|
||||
|
||||
typedef XrResult (XRAPI_PTR *PFN_xrEnumerateDisplayRefreshRatesFB)(XrSession session, uint32_t displayRefreshRateCapacityInput, uint32_t* displayRefreshRateCountOutput, float* displayRefreshRates);
|
||||
typedef XrResult (XRAPI_PTR *PFN_xrGetDisplayRefreshRateFB)(XrSession session, float* displayRefreshRate);
|
||||
typedef XrResult (XRAPI_PTR *PFN_xrRequestDisplayRefreshRateFB)(XrSession session, float displayRefreshRate);
|
||||
|
||||
#ifndef XR_NO_PROTOTYPES
|
||||
XRAPI_ATTR XrResult XRAPI_CALL xrEnumerateDisplayRefreshRatesFB(
|
||||
XrSession session,
|
||||
uint32_t displayRefreshRateCapacityInput,
|
||||
uint32_t* displayRefreshRateCountOutput,
|
||||
float* displayRefreshRates);
|
||||
|
||||
XRAPI_ATTR XrResult XRAPI_CALL xrGetDisplayRefreshRateFB(
|
||||
XrSession session,
|
||||
float* displayRefreshRate);
|
||||
|
||||
XRAPI_ATTR XrResult XRAPI_CALL xrRequestDisplayRefreshRateFB(
|
||||
XrSession session,
|
||||
float displayRefreshRate);
|
||||
#endif
|
||||
|
||||
|
||||
#define XR_HTC_vive_cosmos_controller_interaction 1
|
||||
#define XR_HTC_vive_cosmos_controller_interaction_SPEC_VERSION 1
|
||||
#define XR_HTC_VIVE_COSMOS_CONTROLLER_INTERACTION_EXTENSION_NAME "XR_HTC_vive_cosmos_controller_interaction"
|
||||
|
||||
|
||||
#define XR_FB_color_space 1
|
||||
#define XR_FB_color_space_SPEC_VERSION 1
|
||||
#define XR_FB_COLOR_SPACE_EXTENSION_NAME "XR_FB_color_space"
|
||||
|
||||
typedef enum XrColorSpaceFB {
|
||||
XR_COLOR_SPACE_UNMANAGED_FB = 0,
|
||||
XR_COLOR_SPACE_REC2020_FB = 1,
|
||||
XR_COLOR_SPACE_REC709_FB = 2,
|
||||
XR_COLOR_SPACE_RIFT_CV1_FB = 3,
|
||||
XR_COLOR_SPACE_RIFT_S_FB = 4,
|
||||
XR_COLOR_SPACE_QUEST_FB = 5,
|
||||
XR_COLOR_SPACE_P3_FB = 6,
|
||||
XR_COLOR_SPACE_ADOBE_RGB_FB = 7,
|
||||
XR_COLOR_SPACE_MAX_ENUM_FB = 0x7FFFFFFF
|
||||
} XrColorSpaceFB;
|
||||
typedef struct XrSystemColorSpacePropertiesFB {
|
||||
XrStructureType type;
|
||||
void* XR_MAY_ALIAS next;
|
||||
XrColorSpaceFB colorSpace;
|
||||
} XrSystemColorSpacePropertiesFB;
|
||||
|
||||
typedef XrResult (XRAPI_PTR *PFN_xrEnumerateColorSpacesFB)(XrSession session, uint32_t colorSpaceCapacityInput, uint32_t* colorSpaceCountOutput, XrColorSpaceFB* colorSpaces);
|
||||
typedef XrResult (XRAPI_PTR *PFN_xrSetColorSpaceFB)(XrSession session, const XrColorSpaceFB colorspace);
|
||||
|
||||
#ifndef XR_NO_PROTOTYPES
|
||||
XRAPI_ATTR XrResult XRAPI_CALL xrEnumerateColorSpacesFB(
|
||||
XrSession session,
|
||||
uint32_t colorSpaceCapacityInput,
|
||||
uint32_t* colorSpaceCountOutput,
|
||||
XrColorSpaceFB* colorSpaces);
|
||||
|
||||
XRAPI_ATTR XrResult XRAPI_CALL xrSetColorSpaceFB(
|
||||
XrSession session,
|
||||
const XrColorSpaceFB colorspace);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -75,7 +75,7 @@ typedef struct XrInstanceCreateInfoAndroidKHR {
|
|||
#ifdef XR_USE_GRAPHICS_API_VULKAN
|
||||
|
||||
#define XR_KHR_vulkan_swapchain_format_list 1
|
||||
#define XR_KHR_vulkan_swapchain_format_list_SPEC_VERSION 2
|
||||
#define XR_KHR_vulkan_swapchain_format_list_SPEC_VERSION 3
|
||||
#define XR_KHR_VULKAN_SWAPCHAIN_FORMAT_LIST_EXTENSION_NAME "XR_KHR_vulkan_swapchain_format_list"
|
||||
typedef struct XrVulkanSwapchainFormatListCreateInfoKHR {
|
||||
XrStructureType type;
|
||||
|
@ -366,6 +366,97 @@ XRAPI_ATTR XrResult XRAPI_CALL xrConvertTimeToTimespecTimeKHR(
|
|||
#endif
|
||||
#endif /* XR_USE_TIMESPEC */
|
||||
|
||||
#ifdef XR_USE_PLATFORM_ANDROID
|
||||
|
||||
#define XR_KHR_loader_init_android 1
|
||||
#define XR_KHR_loader_init_android_SPEC_VERSION 1
|
||||
#define XR_KHR_LOADER_INIT_ANDROID_EXTENSION_NAME "XR_KHR_loader_init_android"
|
||||
typedef struct XrLoaderInitInfoAndroidKHR {
|
||||
XrStructureType type;
|
||||
const void* XR_MAY_ALIAS next;
|
||||
void* XR_MAY_ALIAS applicationVM;
|
||||
void* XR_MAY_ALIAS applicationContext;
|
||||
} XrLoaderInitInfoAndroidKHR;
|
||||
|
||||
#endif /* XR_USE_PLATFORM_ANDROID */
|
||||
|
||||
#ifdef XR_USE_GRAPHICS_API_VULKAN
|
||||
|
||||
#define XR_KHR_vulkan_enable2 1
|
||||
#define XR_KHR_vulkan_enable2_SPEC_VERSION 1
|
||||
#define XR_KHR_VULKAN_ENABLE2_EXTENSION_NAME "XR_KHR_vulkan_enable2"
|
||||
typedef XrFlags64 XrVulkanInstanceCreateFlagsKHR;
|
||||
|
||||
// Flag bits for XrVulkanInstanceCreateFlagsKHR
|
||||
|
||||
typedef XrFlags64 XrVulkanDeviceCreateFlagsKHR;
|
||||
|
||||
// Flag bits for XrVulkanDeviceCreateFlagsKHR
|
||||
|
||||
typedef struct XrVulkanInstanceCreateInfoKHR {
|
||||
XrStructureType type;
|
||||
const void* XR_MAY_ALIAS next;
|
||||
XrSystemId systemId;
|
||||
XrVulkanInstanceCreateFlagsKHR createFlags;
|
||||
PFN_vkGetInstanceProcAddr pfnGetInstanceProcAddr;
|
||||
const VkInstanceCreateInfo* vulkanCreateInfo;
|
||||
const VkAllocationCallbacks* vulkanAllocator;
|
||||
} XrVulkanInstanceCreateInfoKHR;
|
||||
|
||||
typedef struct XrVulkanDeviceCreateInfoKHR {
|
||||
XrStructureType type;
|
||||
const void* XR_MAY_ALIAS next;
|
||||
XrSystemId systemId;
|
||||
XrVulkanDeviceCreateFlagsKHR createFlags;
|
||||
PFN_vkGetInstanceProcAddr pfnGetInstanceProcAddr;
|
||||
VkPhysicalDevice vulkanPhysicalDevice;
|
||||
const VkDeviceCreateInfo* vulkanCreateInfo;
|
||||
const VkAllocationCallbacks* vulkanAllocator;
|
||||
} XrVulkanDeviceCreateInfoKHR;
|
||||
|
||||
typedef XrGraphicsBindingVulkanKHR XrGraphicsBindingVulkan2KHR;
|
||||
|
||||
typedef struct XrVulkanGraphicsDeviceGetInfoKHR {
|
||||
XrStructureType type;
|
||||
const void* XR_MAY_ALIAS next;
|
||||
XrSystemId systemId;
|
||||
VkInstance vulkanInstance;
|
||||
} XrVulkanGraphicsDeviceGetInfoKHR;
|
||||
|
||||
typedef XrSwapchainImageVulkanKHR XrSwapchainImageVulkan2KHR;
|
||||
|
||||
typedef XrGraphicsRequirementsVulkanKHR XrGraphicsRequirementsVulkan2KHR;
|
||||
|
||||
typedef XrResult (XRAPI_PTR *PFN_xrCreateVulkanInstanceKHR)(XrInstance instance, const XrVulkanInstanceCreateInfoKHR*createInfo, VkInstance* vulkanInstance, VkResult* vulkanResult);
|
||||
typedef XrResult (XRAPI_PTR *PFN_xrCreateVulkanDeviceKHR)(XrInstance instance, const XrVulkanDeviceCreateInfoKHR* createInfo, VkDevice* vulkanDevice, VkResult* vulkanResult);
|
||||
typedef XrResult (XRAPI_PTR *PFN_xrGetVulkanGraphicsDevice2KHR)(XrInstance instance, const XrVulkanGraphicsDeviceGetInfoKHR* getInfo, VkPhysicalDevice* vulkanPhysicalDevice);
|
||||
typedef XrResult (XRAPI_PTR *PFN_xrGetVulkanGraphicsRequirements2KHR)(XrInstance instance, XrSystemId systemId, XrGraphicsRequirementsVulkanKHR* graphicsRequirements);
|
||||
|
||||
#ifndef XR_NO_PROTOTYPES
|
||||
XRAPI_ATTR XrResult XRAPI_CALL xrCreateVulkanInstanceKHR(
|
||||
XrInstance instance,
|
||||
const XrVulkanInstanceCreateInfoKHR* createInfo,
|
||||
VkInstance* vulkanInstance,
|
||||
VkResult* vulkanResult);
|
||||
|
||||
XRAPI_ATTR XrResult XRAPI_CALL xrCreateVulkanDeviceKHR(
|
||||
XrInstance instance,
|
||||
const XrVulkanDeviceCreateInfoKHR* createInfo,
|
||||
VkDevice* vulkanDevice,
|
||||
VkResult* vulkanResult);
|
||||
|
||||
XRAPI_ATTR XrResult XRAPI_CALL xrGetVulkanGraphicsDevice2KHR(
|
||||
XrInstance instance,
|
||||
const XrVulkanGraphicsDeviceGetInfoKHR* getInfo,
|
||||
VkPhysicalDevice* vulkanPhysicalDevice);
|
||||
|
||||
XRAPI_ATTR XrResult XRAPI_CALL xrGetVulkanGraphicsRequirements2KHR(
|
||||
XrInstance instance,
|
||||
XrSystemId systemId,
|
||||
XrGraphicsRequirementsVulkanKHR* graphicsRequirements);
|
||||
#endif
|
||||
#endif /* XR_USE_GRAPHICS_API_VULKAN */
|
||||
|
||||
#ifdef XR_USE_PLATFORM_EGL
|
||||
|
||||
#define XR_MNDX_egl_enable 1
|
||||
|
@ -384,6 +475,27 @@ typedef struct XrGraphicsBindingEGLMNDX {
|
|||
|
||||
#ifdef XR_USE_PLATFORM_WIN32
|
||||
|
||||
#define XR_MSFT_perception_anchor_interop 1
|
||||
#define XR_MSFT_perception_anchor_interop_SPEC_VERSION 1
|
||||
#define XR_MSFT_PERCEPTION_ANCHOR_INTEROP_EXTENSION_NAME "XR_MSFT_perception_anchor_interop"
|
||||
typedef XrResult (XRAPI_PTR *PFN_xrCreateSpatialAnchorFromPerceptionAnchorMSFT)(XrSession session, IUnknown* perceptionAnchor, XrSpatialAnchorMSFT* anchor);
|
||||
typedef XrResult (XRAPI_PTR *PFN_xrTryGetPerceptionAnchorFromSpatialAnchorMSFT)(XrSession session, XrSpatialAnchorMSFT anchor, IUnknown** perceptionAnchor);
|
||||
|
||||
#ifndef XR_NO_PROTOTYPES
|
||||
XRAPI_ATTR XrResult XRAPI_CALL xrCreateSpatialAnchorFromPerceptionAnchorMSFT(
|
||||
XrSession session,
|
||||
IUnknown* perceptionAnchor,
|
||||
XrSpatialAnchorMSFT* anchor);
|
||||
|
||||
XRAPI_ATTR XrResult XRAPI_CALL xrTryGetPerceptionAnchorFromSpatialAnchorMSFT(
|
||||
XrSession session,
|
||||
XrSpatialAnchorMSFT anchor,
|
||||
IUnknown** perceptionAnchor);
|
||||
#endif
|
||||
#endif /* XR_USE_PLATFORM_WIN32 */
|
||||
|
||||
#ifdef XR_USE_PLATFORM_WIN32
|
||||
|
||||
#define XR_MSFT_holographic_window_attachment 1
|
||||
#define XR_MSFT_holographic_window_attachment_SPEC_VERSION 1
|
||||
#define XR_MSFT_HOLOGRAPHIC_WINDOW_ATTACHMENT_EXTENSION_NAME "XR_MSFT_holographic_window_attachment"
|
||||
|
|
|
@ -80,7 +80,7 @@ typedef unsigned __int64 uint64_t;
|
|||
#endif
|
||||
#endif
|
||||
|
||||
// Identifies if the current compiler has C++11 support enabled.
|
||||
// Identifies if the current compiler has C++11 support enabled.
|
||||
// Does not by itself identify if any given C++11 feature is present.
|
||||
#if !defined(XR_CPP11_ENABLED) && defined(__cplusplus)
|
||||
#if defined(__GNUC__) && defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
|
|
|
@ -90,6 +90,8 @@ XR_ENUM_STR(XrResult);
|
|||
_(XR_ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT, -1000039001) \
|
||||
_(XR_ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT, -1000053000) \
|
||||
_(XR_ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT, -1000055000) \
|
||||
_(XR_ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB, -1000101000) \
|
||||
_(XR_ERROR_COLOR_SPACE_UNSUPPORTED_FB, -1000108000) \
|
||||
_(XR_RESULT_MAX_ENUM, 0x7FFFFFFF)
|
||||
|
||||
#define XR_LIST_ENUM_XrStructureType(_) \
|
||||
|
@ -213,6 +215,9 @@ XR_ENUM_STR(XrResult);
|
|||
_(XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR, 1000090001) \
|
||||
_(XR_TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR, 1000090003) \
|
||||
_(XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR, 1000091000) \
|
||||
_(XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB, 1000101000) \
|
||||
_(XR_TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB, 1000108000) \
|
||||
_(XR_TYPE_BINDING_MODIFICATIONS_KHR, 1000120000) \
|
||||
_(XR_STRUCTURE_TYPE_MAX_ENUM, 0x7FFFFFFF)
|
||||
|
||||
#define XR_LIST_ENUM_XrFormFactor(_) \
|
||||
|
@ -364,6 +369,17 @@ XR_ENUM_STR(XrResult);
|
|||
_(XR_HAND_POSE_TYPE_REFERENCE_OPEN_PALM_MSFT, 1) \
|
||||
_(XR_HAND_POSE_TYPE_MAX_ENUM_MSFT, 0x7FFFFFFF)
|
||||
|
||||
#define XR_LIST_ENUM_XrColorSpaceFB(_) \
|
||||
_(XR_COLOR_SPACE_UNMANAGED_FB, 0) \
|
||||
_(XR_COLOR_SPACE_REC2020_FB, 1) \
|
||||
_(XR_COLOR_SPACE_REC709_FB, 2) \
|
||||
_(XR_COLOR_SPACE_RIFT_CV1_FB, 3) \
|
||||
_(XR_COLOR_SPACE_RIFT_S_FB, 4) \
|
||||
_(XR_COLOR_SPACE_QUEST_FB, 5) \
|
||||
_(XR_COLOR_SPACE_P3_FB, 6) \
|
||||
_(XR_COLOR_SPACE_ADOBE_RGB_FB, 7) \
|
||||
_(XR_COLOR_SPACE_MAX_ENUM_FB, 0x7FFFFFFF)
|
||||
|
||||
#define XR_LIST_BITS_XrInstanceCreateFlags(_)
|
||||
|
||||
#define XR_LIST_BITS_XrSessionCreateFlags(_)
|
||||
|
@ -1108,6 +1124,16 @@ XR_ENUM_STR(XrResult);
|
|||
_(upperVerticalAngle) \
|
||||
_(lowerVerticalAngle) \
|
||||
|
||||
#define XR_LIST_STRUCT_XrBindingModificationBaseHeaderKHR(_) \
|
||||
_(type) \
|
||||
_(next) \
|
||||
|
||||
#define XR_LIST_STRUCT_XrBindingModificationsKHR(_) \
|
||||
_(type) \
|
||||
_(next) \
|
||||
_(bindingModificationCount) \
|
||||
_(bindingModifications) \
|
||||
|
||||
#define XR_LIST_STRUCT_XrEventDataPerfSettingsEXT(_) \
|
||||
_(type) \
|
||||
_(next) \
|
||||
|
@ -1383,6 +1409,17 @@ XR_ENUM_STR(XrResult);
|
|||
_(onHaptic) \
|
||||
_(offHaptic) \
|
||||
|
||||
#define XR_LIST_STRUCT_XrEventDataDisplayRefreshRateChangedFB(_) \
|
||||
_(type) \
|
||||
_(next) \
|
||||
_(fromDisplayRefreshRate) \
|
||||
_(toDisplayRefreshRate) \
|
||||
|
||||
#define XR_LIST_STRUCT_XrSystemColorSpacePropertiesFB(_) \
|
||||
_(type) \
|
||||
_(next) \
|
||||
_(colorSpace) \
|
||||
|
||||
|
||||
|
||||
#define XR_LIST_STRUCTURE_TYPES_CORE(_) \
|
||||
|
@ -1443,6 +1480,7 @@ XR_ENUM_STR(XrResult);
|
|||
_(XrEventDataVisibilityMaskChangedKHR, XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR) \
|
||||
_(XrCompositionLayerColorScaleBiasKHR, XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR) \
|
||||
_(XrCompositionLayerEquirect2KHR, XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR) \
|
||||
_(XrBindingModificationsKHR, XR_TYPE_BINDING_MODIFICATIONS_KHR) \
|
||||
_(XrEventDataPerfSettingsEXT, XR_TYPE_EVENT_DATA_PERF_SETTINGS_EXT) \
|
||||
_(XrDebugUtilsObjectNameInfoEXT, XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT) \
|
||||
_(XrDebugUtilsLabelEXT, XR_TYPE_DEBUG_UTILS_LABEL_EXT) \
|
||||
|
@ -1479,6 +1517,8 @@ XR_ENUM_STR(XrResult);
|
|||
_(XrControllerModelStateMSFT, XR_TYPE_CONTROLLER_MODEL_STATE_MSFT) \
|
||||
_(XrViewConfigurationViewFovEPIC, XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC) \
|
||||
_(XrInteractionProfileAnalogThresholdVALVE, XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE) \
|
||||
_(XrEventDataDisplayRefreshRateChangedFB, XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB) \
|
||||
_(XrSystemColorSpacePropertiesFB, XR_TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB) \
|
||||
|
||||
|
||||
|
||||
|
@ -1515,6 +1555,42 @@ XR_ENUM_STR(XrResult);
|
|||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL(_)
|
||||
#endif
|
||||
|
||||
#if defined(XR_USE_GRAPHICS_API_OPENGL) && defined(XR_USE_PLATFORM_WAYLAND)
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL_XR_USE_PLATFORM_WAYLAND(_) \
|
||||
_(XrGraphicsBindingOpenGLWaylandKHR, XR_TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR) \
|
||||
|
||||
|
||||
#else
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL_XR_USE_PLATFORM_WAYLAND(_)
|
||||
#endif
|
||||
|
||||
#if defined(XR_USE_GRAPHICS_API_OPENGL) && defined(XR_USE_PLATFORM_WIN32)
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL_XR_USE_PLATFORM_WIN32(_) \
|
||||
_(XrGraphicsBindingOpenGLWin32KHR, XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR) \
|
||||
|
||||
|
||||
#else
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL_XR_USE_PLATFORM_WIN32(_)
|
||||
#endif
|
||||
|
||||
#if defined(XR_USE_GRAPHICS_API_OPENGL) && defined(XR_USE_PLATFORM_XCB)
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL_XR_USE_PLATFORM_XCB(_) \
|
||||
_(XrGraphicsBindingOpenGLXcbKHR, XR_TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR) \
|
||||
|
||||
|
||||
#else
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL_XR_USE_PLATFORM_XCB(_)
|
||||
#endif
|
||||
|
||||
#if defined(XR_USE_GRAPHICS_API_OPENGL) && defined(XR_USE_PLATFORM_XLIB)
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL_XR_USE_PLATFORM_XLIB(_) \
|
||||
_(XrGraphicsBindingOpenGLXlibKHR, XR_TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR) \
|
||||
|
||||
|
||||
#else
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL_XR_USE_PLATFORM_XLIB(_)
|
||||
#endif
|
||||
|
||||
#if defined(XR_USE_GRAPHICS_API_OPENGL_ES)
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL_ES(_) \
|
||||
_(XrSwapchainImageOpenGLESKHR, XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR) \
|
||||
|
@ -1525,6 +1601,15 @@ XR_ENUM_STR(XrResult);
|
|||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL_ES(_)
|
||||
#endif
|
||||
|
||||
#if defined(XR_USE_GRAPHICS_API_OPENGL_ES) && defined(XR_USE_PLATFORM_ANDROID)
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL_ES_XR_USE_PLATFORM_ANDROID(_) \
|
||||
_(XrGraphicsBindingOpenGLESAndroidKHR, XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR) \
|
||||
|
||||
|
||||
#else
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL_ES_XR_USE_PLATFORM_ANDROID(_)
|
||||
#endif
|
||||
|
||||
#if defined(XR_USE_GRAPHICS_API_VULKAN)
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_VULKAN(_) \
|
||||
_(XrVulkanSwapchainFormatListCreateInfoKHR, XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR) \
|
||||
|
@ -1550,15 +1635,6 @@ XR_ENUM_STR(XrResult);
|
|||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_ANDROID(_)
|
||||
#endif
|
||||
|
||||
#if defined(XR_USE_PLATFORM_ANDROID) && defined(XR_USE_GRAPHICS_API_OPENGL_ES)
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_ANDROID_XR_USE_GRAPHICS_API_OPENGL_ES(_) \
|
||||
_(XrGraphicsBindingOpenGLESAndroidKHR, XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR) \
|
||||
|
||||
|
||||
#else
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_ANDROID_XR_USE_GRAPHICS_API_OPENGL_ES(_)
|
||||
#endif
|
||||
|
||||
#if defined(XR_USE_PLATFORM_EGL)
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_EGL(_) \
|
||||
_(XrGraphicsBindingEGLMNDX, XR_TYPE_GRAPHICS_BINDING_EGL_MNDX) \
|
||||
|
@ -1568,15 +1644,6 @@ XR_ENUM_STR(XrResult);
|
|||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_EGL(_)
|
||||
#endif
|
||||
|
||||
#if defined(XR_USE_PLATFORM_WAYLAND) && defined(XR_USE_GRAPHICS_API_OPENGL)
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_WAYLAND_XR_USE_GRAPHICS_API_OPENGL(_) \
|
||||
_(XrGraphicsBindingOpenGLWaylandKHR, XR_TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR) \
|
||||
|
||||
|
||||
#else
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_WAYLAND_XR_USE_GRAPHICS_API_OPENGL(_)
|
||||
#endif
|
||||
|
||||
#if defined(XR_USE_PLATFORM_WIN32)
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_WIN32(_) \
|
||||
_(XrHolographicWindowAttachmentMSFT, XR_TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT) \
|
||||
|
@ -1586,48 +1653,21 @@ XR_ENUM_STR(XrResult);
|
|||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_WIN32(_)
|
||||
#endif
|
||||
|
||||
#if defined(XR_USE_PLATFORM_WIN32) && defined(XR_USE_GRAPHICS_API_OPENGL)
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_WIN32_XR_USE_GRAPHICS_API_OPENGL(_) \
|
||||
_(XrGraphicsBindingOpenGLWin32KHR, XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR) \
|
||||
|
||||
|
||||
#else
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_WIN32_XR_USE_GRAPHICS_API_OPENGL(_)
|
||||
#endif
|
||||
|
||||
#if defined(XR_USE_PLATFORM_XCB) && defined(XR_USE_GRAPHICS_API_OPENGL)
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_XCB_XR_USE_GRAPHICS_API_OPENGL(_) \
|
||||
_(XrGraphicsBindingOpenGLXcbKHR, XR_TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR) \
|
||||
|
||||
|
||||
#else
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_XCB_XR_USE_GRAPHICS_API_OPENGL(_)
|
||||
#endif
|
||||
|
||||
#if defined(XR_USE_PLATFORM_XLIB) && defined(XR_USE_GRAPHICS_API_OPENGL)
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_XLIB_XR_USE_GRAPHICS_API_OPENGL(_) \
|
||||
_(XrGraphicsBindingOpenGLXlibKHR, XR_TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR) \
|
||||
|
||||
|
||||
#else
|
||||
#define XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_XLIB_XR_USE_GRAPHICS_API_OPENGL(_)
|
||||
#endif
|
||||
|
||||
#define XR_LIST_STRUCTURE_TYPES(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_CORE(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_D3D11(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_D3D12(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL_XR_USE_PLATFORM_WAYLAND(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL_XR_USE_PLATFORM_WIN32(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL_XR_USE_PLATFORM_XCB(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL_XR_USE_PLATFORM_XLIB(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL_ES(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_OPENGL_ES_XR_USE_PLATFORM_ANDROID(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_XR_USE_GRAPHICS_API_VULKAN(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_ANDROID(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_ANDROID_XR_USE_GRAPHICS_API_OPENGL_ES(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_EGL(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_WAYLAND_XR_USE_GRAPHICS_API_OPENGL(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_WIN32(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_WIN32_XR_USE_GRAPHICS_API_OPENGL(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_XCB_XR_USE_GRAPHICS_API_OPENGL(_) \
|
||||
XR_LIST_STRUCTURE_TYPES_XR_USE_PLATFORM_XLIB_XR_USE_GRAPHICS_API_OPENGL(_) \
|
||||
|
||||
|
||||
#define XR_LIST_EXTENSIONS(_) \
|
||||
|
@ -1668,6 +1708,7 @@ XR_ENUM_STR(XrResult);
|
|||
_(XR_MSFT_secondary_view_configuration, 54) \
|
||||
_(XR_MSFT_first_person_observer, 55) \
|
||||
_(XR_MSFT_controller_model, 56) \
|
||||
_(XR_MSFT_perception_anchor_interop, 57) \
|
||||
_(XR_EXT_win32_appcontainer_compatible, 58) \
|
||||
_(XR_EPIC_view_configuration_fov, 60) \
|
||||
_(XR_MSFT_holographic_window_attachment, 64) \
|
||||
|
@ -1680,6 +1721,10 @@ XR_ENUM_STR(XrResult);
|
|||
_(XR_EXT_samsung_odyssey_controller, 95) \
|
||||
_(XR_EXT_hp_mixed_reality_controller, 96) \
|
||||
_(XR_MND_swapchain_usage_input_attachment_bit, 97) \
|
||||
_(XR_FB_display_refresh_rate, 102) \
|
||||
_(XR_HTC_vive_cosmos_controller_interaction, 103) \
|
||||
_(XR_FB_color_space, 109) \
|
||||
_(XR_KHR_binding_modification, 121) \
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue