Skyscraper 2.0
XrListFunctions.h
Go to the documentation of this file.
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4#pragma once
5
7
8// These reflection macros should be in openxr_reflection.h and automatically generated from xr.xml
9
10#define XR_LIST_FUNCTIONS_OPENXR_FUNCTIONS(_) \
11 _(xrEnumerateApiLayerProperties) \
12 _(xrEnumerateInstanceExtensionProperties) \
13 _(xrCreateInstance) \
14 _(xrDestroyInstance) \
15 _(xrGetInstanceProperties) \
16 _(xrPollEvent) \
17 _(xrResultToString) \
18 _(xrStructureTypeToString) \
19 _(xrGetSystem) \
20 _(xrGetSystemProperties) \
21 _(xrEnumerateEnvironmentBlendModes) \
22 _(xrCreateSession) \
23 _(xrDestroySession) \
24 _(xrEnumerateReferenceSpaces) \
25 _(xrCreateReferenceSpace) \
26 _(xrGetReferenceSpaceBoundsRect) \
27 _(xrCreateActionSpace) \
28 _(xrLocateSpace) \
29 _(xrDestroySpace) \
30 _(xrEnumerateViewConfigurations) \
31 _(xrGetViewConfigurationProperties) \
32 _(xrEnumerateViewConfigurationViews) \
33 _(xrEnumerateSwapchainFormats) \
34 _(xrCreateSwapchain) \
35 _(xrDestroySwapchain) \
36 _(xrEnumerateSwapchainImages) \
37 _(xrAcquireSwapchainImage) \
38 _(xrWaitSwapchainImage) \
39 _(xrReleaseSwapchainImage) \
40 _(xrBeginSession) \
41 _(xrEndSession) \
42 _(xrRequestExitSession) \
43 _(xrWaitFrame) \
44 _(xrBeginFrame) \
45 _(xrEndFrame) \
46 _(xrLocateViews) \
47 _(xrStringToPath) \
48 _(xrPathToString) \
49 _(xrCreateActionSet) \
50 _(xrDestroyActionSet) \
51 _(xrCreateAction) \
52 _(xrDestroyAction) \
53 _(xrSuggestInteractionProfileBindings) \
54 _(xrAttachSessionActionSets) \
55 _(xrGetCurrentInteractionProfile) \
56 _(xrGetActionStateBoolean) \
57 _(xrGetActionStateFloat) \
58 _(xrGetActionStateVector2f) \
59 _(xrGetActionStatePose) \
60 _(xrSyncActions) \
61 _(xrEnumerateBoundSourcesForAction) \
62 _(xrGetInputSourceLocalizedName) \
63 _(xrApplyHapticFeedback) \
64 _(xrStopHapticFeedback)
65
66#define XR_LIST_FUNCTIONS_XR_KHR_win32_convert_performance_counter_time(_) \
67 _(xrConvertWin32PerformanceCounterToTimeKHR) \
68 _(xrConvertTimeToWin32PerformanceCounterKHR)
69
70#define XR_LIST_FUNCTIONS_XR_KHR_convert_timespec_time(_) \
71 _(xrConvertTimespecTimeToTimeKHR) \
72 _(xrConvertTimeToTimespecTimeKHR)
73
74#define XR_LIST_FUNCTIONS_XR_KHR_D3D11_enable(_) _(xrGetD3D11GraphicsRequirementsKHR)
75#define XR_LIST_FUNCTIONS_XR_KHR_D3D12_enable(_) _(xrGetD3D12GraphicsRequirementsKHR)
76#define XR_LIST_FUNCTIONS_XR_KHR_visibility_mask(_) _(xrGetVisibilityMaskKHR)
77
78#define XR_LIST_FUNCTIONS_XR_MSFT_controller_model(_) \
79 _(xrGetControllerModelKeyMSFT) \
80 _(xrLoadControllerModelMSFT) \
81 _(xrGetControllerModelPropertiesMSFT) \
82 _(xrGetControllerModelStateMSFT)
83
84#define XR_LIST_FUNCTIONS_XR_MSFT_spatial_anchor(_) \
85 _(xrCreateSpatialAnchorMSFT) \
86 _(xrCreateSpatialAnchorSpaceMSFT) \
87 _(xrDestroySpatialAnchorMSFT)
88
89#define XR_LIST_FUNCTIONS_XR_EXT_hand_tracking(_) \
90 _(xrCreateHandTrackerEXT) \
91 _(xrDestroyHandTrackerEXT) \
92 _(xrLocateHandJointsEXT)
93
94#define XR_LIST_FUNCTIONS_XR_MSFT_hand_tracking_mesh(_) \
95 _(xrCreateHandMeshSpaceMSFT) \
96 _(xrUpdateHandMeshMSFT)
97
98#define XR_LIST_FUNCTIONS_XR_MSFT_spatial_graph_bridge(_) \
99 _(xrCreateSpatialGraphNodeSpaceMSFT) \
100 _(xrTryCreateSpatialGraphStaticNodeBindingMSFT) \
101 _(xrDestroySpatialGraphNodeBindingMSFT) \
102 _(xrGetSpatialGraphNodeBindingPropertiesMSFT)
103
104#define XR_LIST_FUNCTIONS_XR_MSFT_holographic_remoting(_) \
105 _(xrRemotingSetContextPropertiesMSFT) \
106 _(xrRemotingConnectMSFT) \
107 _(xrRemotingListenMSFT) \
108 _(xrRemotingDisconnectMSFT) \
109 _(xrRemotingGetConnectionStateMSFT) \
110 _(xrRemotingSetSecureConnectionClientCallbacksMSFT) \
111 _(xrRemotingSetSecureConnectionServerCallbacksMSFT)
112
113#define XR_LIST_FUNCTIONS_XR_MSFT_perception_anchor_interop(_) \
114 _(xrCreateSpatialAnchorFromPerceptionAnchorMSFT) \
115 _(xrTryGetPerceptionAnchorFromSpatialAnchorMSFT)
116
117#define XR_LIST_FUNCTIONS_XR_MSFT_scene_understanding(_) \
118 _(xrEnumerateSceneComputeFeaturesMSFT) \
119 _(xrCreateSceneObserverMSFT) \
120 _(xrDestroySceneObserverMSFT) \
121 _(xrCreateSceneMSFT) \
122 _(xrDestroySceneMSFT) \
123 _(xrComputeNewSceneMSFT) \
124 _(xrGetSceneComputeStateMSFT) \
125 _(xrGetSceneComponentsMSFT) \
126 _(xrLocateSceneComponentsMSFT) \
127 _(xrGetSceneMeshBuffersMSFT)
128
129#define XR_LIST_FUNCTIONS_XR_MSFT_scene_understanding_serialization(_) \
130 _(xrDeserializeSceneMSFT) \
131 _(xrGetSerializedSceneFragmentDataMSFT)
132
133#define XR_LIST_FUNCTIONS_XR_MSFT_spatial_anchor_persistence(_) \
134 _(xrCreateSpatialAnchorStoreConnectionMSFT) \
135 _(xrDestroySpatialAnchorStoreConnectionMSFT) \
136 _(xrPersistSpatialAnchorMSFT) \
137 _(xrEnumeratePersistedSpatialAnchorNamesMSFT) \
138 _(xrCreateSpatialAnchorFromPersistedNameMSFT) \
139 _(xrUnpersistSpatialAnchorMSFT) \
140 _(xrClearSpatialAnchorStoreMSFT)
141
142#define XR_LIST_FUNCTIONS_XR_MSFT_composition_layer_reprojection(_) _(xrEnumerateReprojectionModesMSFT)
143
144// clang-format off
145#define XR_LIST_FUNCTIONS_OPENXR_EXTENSIONS(_, __) \
146 XR_KHR_win32_convert_performance_counter_time_DEFINED(XR_LIST_FUNCTIONS_XR_KHR_win32_convert_performance_counter_time, _, __) \
147 XR_KHR_convert_timespec_time_DEFINED(XR_LIST_FUNCTIONS_XR_KHR_convert_timespec_time, _, __) \
148 XR_KHR_D3D11_enable_DEFINED(XR_LIST_FUNCTIONS_XR_KHR_D3D11_enable, _, __) \
149 XR_KHR_D3D12_enable_DEFINED(XR_LIST_FUNCTIONS_XR_KHR_D3D12_enable, _, __) \
150 XR_KHR_visibility_mask_DEFINED(XR_LIST_FUNCTIONS_XR_KHR_visibility_mask, _, __) \
151 XR_MSFT_controller_model_DEFINED(XR_LIST_FUNCTIONS_XR_MSFT_controller_model, _, __) \
152 XR_MSFT_spatial_anchor_DEFINED(XR_LIST_FUNCTIONS_XR_MSFT_spatial_anchor, _, __) \
153 XR_EXT_hand_tracking_DEFINED(XR_LIST_FUNCTIONS_XR_EXT_hand_tracking, _, __) \
154 XR_MSFT_hand_tracking_mesh_DEFINED(XR_LIST_FUNCTIONS_XR_MSFT_hand_tracking_mesh, _, __) \
155 XR_MSFT_spatial_graph_bridge_DEFINED(XR_LIST_FUNCTIONS_XR_MSFT_spatial_graph_bridge, _, __) \
156 XR_MSFT_holographic_remoting_DEFINED(XR_LIST_FUNCTIONS_XR_MSFT_holographic_remoting, _, __) \
157 XR_MSFT_perception_anchor_interop_DEFINED(XR_LIST_FUNCTIONS_XR_MSFT_perception_anchor_interop, _, __) \
158 XR_MSFT_scene_understanding_DEFINED(XR_LIST_FUNCTIONS_XR_MSFT_scene_understanding, _, __) \
159 XR_MSFT_scene_understanding_serialization_DEFINED(XR_LIST_FUNCTIONS_XR_MSFT_scene_understanding_serialization, _, __) \
160 XR_MSFT_spatial_anchor_persistence_DEFINED(XR_LIST_FUNCTIONS_XR_MSFT_spatial_anchor_persistence, _, __) \
161 XR_MSFT_composition_layer_reprojection_DEFINED(XR_LIST_FUNCTIONS_XR_MSFT_composition_layer_reprojection, _, __) \
162// clang-format on