The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ext/openxr: Bump OpenXR headers to 1.0.33

1. Download and unzip from
https://github.com/KhronosGroup/OpenXR-SDK/releases/tag/release-1.0.33.
2. Copy all header files in include directory to
src/external/openxr_includes/openxr.

Signed-off-by: utzcoz <utzcoz@outlook.com>

utzcoz 98cb76a6 0d662607

+206 -9
+2 -2
src/external/openxr_includes/openxr/openxr.h
··· 2 2 #define OPENXR_H_ 1 3 3 4 4 /* 5 - ** Copyright 2017-2023 The Khronos Group Inc. 5 + ** Copyright 2017-2024, The Khronos Group Inc. 6 6 ** 7 7 ** SPDX-License-Identifier: Apache-2.0 OR MIT 8 8 */ ··· 25 25 ((((major) & 0xffffULL) << 48) | (((minor) & 0xffffULL) << 32) | ((patch) & 0xffffffffULL)) 26 26 27 27 // OpenXR current version number. 28 - #define XR_CURRENT_API_VERSION XR_MAKE_VERSION(1, 0, 32) 28 + #define XR_CURRENT_API_VERSION XR_MAKE_VERSION(1, 0, 33) 29 29 30 30 #define XR_VERSION_MAJOR(version) (uint16_t)(((uint64_t)(version) >> 48)& 0xffffULL) 31 31 #define XR_VERSION_MINOR(version) (uint16_t)(((uint64_t)(version) >> 32) & 0xffffULL)
+140
src/external/openxr_includes/openxr/openxr_loader_negotiation.h
··· 1 + #ifndef OPENXR_LOADER_NEGOTIATION_H_ 2 + #define OPENXR_LOADER_NEGOTIATION_H_ 1 3 + 4 + /* 5 + ** Copyright 2017-2024, The Khronos Group Inc. 6 + ** 7 + ** SPDX-License-Identifier: Apache-2.0 OR MIT 8 + */ 9 + 10 + /* 11 + ** This header is generated from the Khronos OpenXR XML API Registry. 12 + ** 13 + */ 14 + 15 + #include "openxr.h" 16 + 17 + #ifdef __cplusplus 18 + extern "C" { 19 + #endif 20 + 21 + 22 + 23 + #define XR_LOADER_VERSION_1_0 1 24 + 25 + #define XR_CURRENT_LOADER_API_LAYER_VERSION 1 26 + 27 + 28 + #define XR_CURRENT_LOADER_RUNTIME_VERSION 1 29 + 30 + 31 + #define XR_LOADER_INFO_STRUCT_VERSION 1 32 + 33 + 34 + #define XR_API_LAYER_INFO_STRUCT_VERSION 1 35 + 36 + 37 + #define XR_RUNTIME_INFO_STRUCT_VERSION 1 38 + 39 + 40 + #define XR_API_LAYER_NEXT_INFO_STRUCT_VERSION 1 41 + 42 + 43 + #define XR_API_LAYER_CREATE_INFO_STRUCT_VERSION 1 44 + 45 + 46 + #define XR_API_LAYER_MAX_SETTINGS_PATH_SIZE 512 47 + 48 + 49 + typedef enum XrLoaderInterfaceStructs { 50 + XR_LOADER_INTERFACE_STRUCT_UNINTIALIZED = 0, 51 + XR_LOADER_INTERFACE_STRUCT_LOADER_INFO = 1, 52 + XR_LOADER_INTERFACE_STRUCT_API_LAYER_REQUEST = 2, 53 + XR_LOADER_INTERFACE_STRUCT_RUNTIME_REQUEST = 3, 54 + XR_LOADER_INTERFACE_STRUCT_API_LAYER_CREATE_INFO = 4, 55 + XR_LOADER_INTERFACE_STRUCT_API_LAYER_NEXT_INFO = 5, 56 + XR_LOADER_INTERFACE_STRUCTS_MAX_ENUM = 0x7FFFFFFF 57 + } XrLoaderInterfaceStructs; 58 + typedef XrResult (XRAPI_PTR *PFN_xrGetInstanceProcAddr)(XrInstance instance, const char* name, PFN_xrVoidFunction* function); 59 + 60 + typedef struct XrApiLayerCreateInfo XrApiLayerCreateInfo; 61 + typedef XrResult (XRAPI_PTR *PFN_xrCreateApiLayerInstance)( 62 + const XrInstanceCreateInfo* info, 63 + const XrApiLayerCreateInfo* apiLayerInfo, 64 + XrInstance* instance); 65 + 66 + typedef struct XrApiLayerNextInfo { 67 + XrLoaderInterfaceStructs structType; 68 + uint32_t structVersion; 69 + size_t structSize; 70 + char layerName[XR_MAX_API_LAYER_NAME_SIZE]; 71 + PFN_xrGetInstanceProcAddr nextGetInstanceProcAddr; 72 + PFN_xrCreateApiLayerInstance nextCreateApiLayerInstance; 73 + struct XrApiLayerNextInfo* next; 74 + } XrApiLayerNextInfo; 75 + 76 + typedef struct XrApiLayerCreateInfo { 77 + XrLoaderInterfaceStructs structType; 78 + uint32_t structVersion; 79 + size_t structSize; 80 + void* XR_MAY_ALIAS loaderInstance; 81 + char settings_file_location[XR_API_LAYER_MAX_SETTINGS_PATH_SIZE]; 82 + XrApiLayerNextInfo* nextInfo; 83 + } XrApiLayerCreateInfo; 84 + 85 + typedef struct XrNegotiateLoaderInfo { 86 + XrLoaderInterfaceStructs structType; 87 + uint32_t structVersion; 88 + size_t structSize; 89 + uint32_t minInterfaceVersion; 90 + uint32_t maxInterfaceVersion; 91 + XrVersion minApiVersion; 92 + XrVersion maxApiVersion; 93 + } XrNegotiateLoaderInfo; 94 + 95 + typedef struct XrNegotiateRuntimeRequest { 96 + XrLoaderInterfaceStructs structType; 97 + uint32_t structVersion; 98 + size_t structSize; 99 + uint32_t runtimeInterfaceVersion; 100 + XrVersion runtimeApiVersion; 101 + PFN_xrGetInstanceProcAddr getInstanceProcAddr; 102 + } XrNegotiateRuntimeRequest; 103 + 104 + typedef struct XrNegotiateApiLayerRequest { 105 + XrLoaderInterfaceStructs structType; 106 + uint32_t structVersion; 107 + size_t structSize; 108 + uint32_t layerInterfaceVersion; 109 + XrVersion layerApiVersion; 110 + PFN_xrGetInstanceProcAddr getInstanceProcAddr; 111 + PFN_xrCreateApiLayerInstance createApiLayerInstance; 112 + } XrNegotiateApiLayerRequest; 113 + 114 + typedef XrResult (XRAPI_PTR *PFN_xrCreateApiLayerInstance)(const XrInstanceCreateInfo* info, const XrApiLayerCreateInfo* layerInfo, XrInstance* instance); 115 + typedef XrResult (XRAPI_PTR *PFN_xrNegotiateLoaderRuntimeInterface)(const XrNegotiateLoaderInfo* loaderInfo, XrNegotiateRuntimeRequest* runtimeRequest); 116 + typedef XrResult (XRAPI_PTR *PFN_xrNegotiateLoaderApiLayerInterface)(const XrNegotiateLoaderInfo* loaderInfo, const char* layerName, XrNegotiateApiLayerRequest* apiLayerRequest); 117 + 118 + #ifndef XR_NO_PROTOTYPES 119 + #ifdef XR_EXTENSION_PROTOTYPES 120 + XRAPI_ATTR XrResult XRAPI_CALL xrCreateApiLayerInstance( 121 + const XrInstanceCreateInfo* info, 122 + const XrApiLayerCreateInfo* layerInfo, 123 + XrInstance* instance); 124 + 125 + XRAPI_ATTR XrResult XRAPI_CALL xrNegotiateLoaderRuntimeInterface( 126 + const XrNegotiateLoaderInfo* loaderInfo, 127 + XrNegotiateRuntimeRequest* runtimeRequest); 128 + 129 + XRAPI_ATTR XrResult XRAPI_CALL xrNegotiateLoaderApiLayerInterface( 130 + const XrNegotiateLoaderInfo* loaderInfo, 131 + const char* layerName, 132 + XrNegotiateApiLayerRequest* apiLayerRequest); 133 + #endif /* XR_EXTENSION_PROTOTYPES */ 134 + #endif /* !XR_NO_PROTOTYPES */ 135 + 136 + #ifdef __cplusplus 137 + } 138 + #endif 139 + 140 + #endif
+3 -3
src/external/openxr_includes/openxr/openxr_platform.h
··· 2 2 #define OPENXR_PLATFORM_H_ 1 3 3 4 4 /* 5 - ** Copyright 2017-2023 The Khronos Group Inc. 5 + ** Copyright 2017-2024, The Khronos Group Inc. 6 6 ** 7 7 ** SPDX-License-Identifier: Apache-2.0 OR MIT 8 8 */ ··· 22 22 #ifdef XR_USE_PLATFORM_ANDROID 23 23 24 24 #define XR_KHR_android_thread_settings 1 25 - #define XR_KHR_android_thread_settings_SPEC_VERSION 5 25 + #define XR_KHR_android_thread_settings_SPEC_VERSION 6 26 26 #define XR_KHR_ANDROID_THREAD_SETTINGS_EXTENSION_NAME "XR_KHR_android_thread_settings" 27 27 28 28 typedef enum XrAndroidThreadTypeKHR { ··· 489 489 #ifdef XR_USE_PLATFORM_EGL 490 490 491 491 #define XR_MNDX_egl_enable 1 492 - #define XR_MNDX_egl_enable_SPEC_VERSION 1 492 + #define XR_MNDX_egl_enable_SPEC_VERSION 2 493 493 #define XR_MNDX_EGL_ENABLE_EXTENSION_NAME "XR_MNDX_egl_enable" 494 494 typedef PFN_xrVoidFunction (*PFN_xrEglGetProcAddressMNDX)(const char *name); 495 495 // XrGraphicsBindingEGLMNDX extends XrSessionCreateInfo
+1 -1
src/external/openxr_includes/openxr/openxr_platform_defines.h
··· 1 1 /* 2 - ** Copyright (c) 2017-2023, The Khronos Group Inc. 2 + ** Copyright (c) 2017-2024, The Khronos Group Inc. 3 3 ** 4 4 ** SPDX-License-Identifier: Apache-2.0 OR MIT 5 5 */
+58 -1
src/external/openxr_includes/openxr/openxr_reflection.h
··· 2 2 #define OPENXR_REFLECTION_H_ 1 3 3 4 4 /* 5 - ** Copyright (c) 2017-2023, The Khronos Group Inc. 5 + ** Copyright (c) 2017-2024, The Khronos Group Inc. 6 6 ** 7 7 ** SPDX-License-Identifier: Apache-2.0 OR MIT 8 8 */ ··· 558 558 _(XR_OBJECT_TYPE_PASSTHROUGH_HTC, 1000317000) \ 559 559 _(XR_OBJECT_TYPE_PLANE_DETECTOR_EXT, 1000429000) \ 560 560 _(XR_OBJECT_TYPE_MAX_ENUM, 0x7FFFFFFF) 561 + 562 + #define XR_LIST_ENUM_XrLoaderInterfaceStructs(_) \ 563 + _(XR_LOADER_INTERFACE_STRUCT_UNINTIALIZED, 0) \ 564 + _(XR_LOADER_INTERFACE_STRUCT_LOADER_INFO, 1) \ 565 + _(XR_LOADER_INTERFACE_STRUCT_API_LAYER_REQUEST, 2) \ 566 + _(XR_LOADER_INTERFACE_STRUCT_RUNTIME_REQUEST, 3) \ 567 + _(XR_LOADER_INTERFACE_STRUCT_API_LAYER_CREATE_INFO, 4) \ 568 + _(XR_LOADER_INTERFACE_STRUCT_API_LAYER_NEXT_INFO, 5) \ 569 + _(XR_LOADER_INTERFACE_STRUCTS_MAX_ENUM, 0x7FFFFFFF) 561 570 562 571 #define XR_LIST_ENUM_XrAndroidThreadTypeKHR(_) \ 563 572 _(XR_ANDROID_THREAD_TYPE_APPLICATION_MAIN_KHR, 1) \ ··· 1991 2000 _(g) \ 1992 2001 _(b) \ 1993 2002 _(a) \ 2003 + 2004 + /// Calls your macro with the name of each member of XrApiLayerNextInfo, in order. 2005 + #define XR_LIST_STRUCT_XrApiLayerNextInfo(_) \ 2006 + _(structType) \ 2007 + _(structVersion) \ 2008 + _(structSize) \ 2009 + _(layerName) \ 2010 + _(nextGetInstanceProcAddr) \ 2011 + _(nextCreateApiLayerInstance) \ 2012 + _(next) \ 2013 + 2014 + /// Calls your macro with the name of each member of XrApiLayerCreateInfo, in order. 2015 + #define XR_LIST_STRUCT_XrApiLayerCreateInfo(_) \ 2016 + _(structType) \ 2017 + _(structVersion) \ 2018 + _(structSize) \ 2019 + _(loaderInstance) \ 2020 + _(settings_file_location) \ 2021 + _(nextInfo) \ 2022 + 2023 + /// Calls your macro with the name of each member of XrNegotiateLoaderInfo, in order. 2024 + #define XR_LIST_STRUCT_XrNegotiateLoaderInfo(_) \ 2025 + _(structType) \ 2026 + _(structVersion) \ 2027 + _(structSize) \ 2028 + _(minInterfaceVersion) \ 2029 + _(maxInterfaceVersion) \ 2030 + _(minApiVersion) \ 2031 + _(maxApiVersion) \ 2032 + 2033 + /// Calls your macro with the name of each member of XrNegotiateRuntimeRequest, in order. 2034 + #define XR_LIST_STRUCT_XrNegotiateRuntimeRequest(_) \ 2035 + _(structType) \ 2036 + _(structVersion) \ 2037 + _(structSize) \ 2038 + _(runtimeInterfaceVersion) \ 2039 + _(runtimeApiVersion) \ 2040 + _(getInstanceProcAddr) \ 2041 + 2042 + /// Calls your macro with the name of each member of XrNegotiateApiLayerRequest, in order. 2043 + #define XR_LIST_STRUCT_XrNegotiateApiLayerRequest(_) \ 2044 + _(structType) \ 2045 + _(structVersion) \ 2046 + _(structSize) \ 2047 + _(layerInterfaceVersion) \ 2048 + _(layerApiVersion) \ 2049 + _(getInstanceProcAddr) \ 2050 + _(createApiLayerInstance) \ 1994 2051 1995 2052 /// Calls your macro with the name of each member of XrCompositionLayerCubeKHR, in order. 1996 2053 #define XR_LIST_STRUCT_XrCompositionLayerCubeKHR(_) \
+1 -1
src/external/openxr_includes/openxr/openxr_reflection_parent_structs.h
··· 2 2 #define OPENXR_REFLECTION_PARENT_STRUCTS_H_ 1 3 3 4 4 /* 5 - ** Copyright (c) 2017-2023, The Khronos Group Inc. 5 + ** Copyright (c) 2017-2024, The Khronos Group Inc. 6 6 ** 7 7 ** SPDX-License-Identifier: Apache-2.0 OR MIT 8 8 */
+1 -1
src/external/openxr_includes/openxr/openxr_reflection_structs.h
··· 2 2 #define OPENXR_REFLECTION_STRUCTS_H_ 1 3 3 4 4 /* 5 - ** Copyright (c) 2017-2023, The Khronos Group Inc. 5 + ** Copyright (c) 2017-2024, The Khronos Group Inc. 6 6 ** 7 7 ** SPDX-License-Identifier: Apache-2.0 OR MIT 8 8 */