Monado OpenXR Runtime
oxr_api_funcs.h
Go to the documentation of this file.
1 // Copyright 2018-2019, Collabora, Ltd.
2 // SPDX-License-Identifier: BSL-1.0
3 /*!
4  * @file
5  * @brief Header defining all API functions.
6  * @author Jakob Bornecrantz <jakob@collabora.com>
7  * @ingroup oxr_api
8  */
9 
10 #pragma once
11 
12 #include "oxr_extension_support.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 
19 /*!
20  * @defgroup oxr_api OpenXR entrypoints
21  *
22  * Gets called from the client application, does most verification and routes
23  * calls into @ref oxr_main functions.
24  *
25  * @ingroup oxr
26  * @{
27  */
28 
29 
30 /*
31  *
32  * oxr_api_negotiate.c
33  *
34  */
35 
36 //! OpenXR API function @ep{xrGetInstanceProcAddr}
37 XRAPI_ATTR XrResult XRAPI_CALL
38 oxr_xrGetInstanceProcAddr(XrInstance instance,
39  const char *name,
40  PFN_xrVoidFunction *function);
41 
42 //! OpenXR API function @ep{xrEnumerateApiLayerProperties}
43 XRAPI_ATTR XrResult XRAPI_CALL
44 oxr_xrEnumerateApiLayerProperties(uint32_t propertyCapacityInput,
45  uint32_t *propertyCountOutput,
46  XrApiLayerProperties *properties);
47 
48 
49 /*
50  *
51  * oxr_api_instance.c
52  *
53  */
54 
55 //! OpenXR API function @ep{xrEnumerateInstanceExtensionProperties}
56 XRAPI_ATTR XrResult XRAPI_CALL
57 oxr_xrEnumerateInstanceExtensionProperties(const char *layerName,
58  uint32_t propertyCapacityInput,
59  uint32_t *propertyCountOutput,
60  XrExtensionProperties *properties);
61 
62 //! OpenXR API function @ep{xrCreateInstance}
63 XRAPI_ATTR XrResult XRAPI_CALL
64 oxr_xrCreateInstance(const XrInstanceCreateInfo *createInfo,
65  XrInstance *instance);
66 
67 //! OpenXR API function @ep{xrDestroyInstance}
68 XRAPI_ATTR XrResult XRAPI_CALL
69 oxr_xrDestroyInstance(XrInstance instance);
70 
71 //! OpenXR API function @ep{xrGetInstanceProperties}
72 XRAPI_ATTR XrResult XRAPI_CALL
73 oxr_xrGetInstanceProperties(XrInstance instance,
74  XrInstanceProperties *instanceProperties);
75 
76 //! OpenXR API function @ep{xrPollEvent}
77 XRAPI_ATTR XrResult XRAPI_CALL
78 oxr_xrPollEvent(XrInstance instance, XrEventDataBuffer *eventData);
79 
80 //! OpenXR API function @ep{xrResultToString}
81 XRAPI_ATTR XrResult XRAPI_CALL
82 oxr_xrResultToString(XrInstance instance,
83  XrResult value,
84  char buffer[XR_MAX_RESULT_STRING_SIZE]);
85 
86 //! OpenXR API function @ep{xrStructureTypeToString}
87 XRAPI_ATTR XrResult XRAPI_CALL
88 oxr_xrStructureTypeToString(XrInstance instance,
89  XrStructureType value,
90  char buffer[XR_MAX_STRUCTURE_NAME_SIZE]);
91 
92 //! OpenXR API function @ep{xrStringToPath}
93 XRAPI_ATTR XrResult XRAPI_CALL
94 oxr_xrStringToPath(XrInstance instance, const char *pathString, XrPath *path);
95 
96 //! OpenXR API function @ep{xrPathToString}
97 XRAPI_ATTR XrResult XRAPI_CALL
98 oxr_xrPathToString(XrInstance instance,
99  XrPath path,
100  uint32_t bufferCapacityInput,
101  uint32_t *bufferCountOutput,
102  char *buffer);
103 
104 //! OpenXR API function @ep{xrConvertTimespecTimeToTimeKHR}
105 XRAPI_ATTR XrResult XRAPI_CALL
106 oxr_xrConvertTimespecTimeToTimeKHR(XrInstance instance,
107  const struct timespec *timespecTime,
108  XrTime *time);
109 
110 //! OpenXR API function @ep{xrConvertTimeToTimespecTimeKHR}
111 XRAPI_ATTR XrResult XRAPI_CALL
112 oxr_xrConvertTimeToTimespecTimeKHR(XrInstance instance,
113  XrTime time,
114  struct timespec *timespecTime);
115 
116 /*
117  *
118  * oxr_api_system.c
119  *
120  */
121 
122 //! OpenXR API function @ep{xrGetSystem}
123 XRAPI_ATTR XrResult XRAPI_CALL
124 oxr_xrGetSystem(XrInstance instance,
125  const XrSystemGetInfo *getInfo,
126  XrSystemId *systemId);
127 
128 //! OpenXR API function @ep{xrGetSystemProperties}
129 XRAPI_ATTR XrResult XRAPI_CALL
130 oxr_xrGetSystemProperties(XrInstance instance,
131  XrSystemId systemId,
132  XrSystemProperties *properties);
133 
134 //! OpenXR API function @ep{xrEnumerateViewConfigurations}
135 XRAPI_ATTR XrResult XRAPI_CALL
137  XrInstance instance,
138  XrSystemId systemId,
139  uint32_t viewConfigurationTypeCapacityInput,
140  uint32_t *viewConfigurationTypeCountOutput,
141  XrViewConfigurationType *viewConfigurationTypes);
142 
143 //! OpenXR API function @ep{xrGetViewConfigurationProperties}
144 XRAPI_ATTR XrResult XRAPI_CALL
146  XrInstance instance,
147  XrSystemId systemId,
148  XrViewConfigurationType viewConfigurationType,
149  XrViewConfigurationProperties *configurationProperties);
150 
151 //! OpenXR API function @ep{xrEnumerateViewConfigurationViews}
152 XRAPI_ATTR XrResult XRAPI_CALL
154  XrInstance instance,
155  XrSystemId systemId,
156  XrViewConfigurationType viewConfigurationType,
157  uint32_t viewCapacityInput,
158  uint32_t *viewCountOutput,
159  XrViewConfigurationView *views);
160 
161 //! OpenXR API function @ep{xrEnumerateEnvironmentBlendModes}
162 XRAPI_ATTR XrResult XRAPI_CALL
164  XrInstance instance,
165  XrSystemId systemId,
166  XrViewConfigurationType viewConfigurationType,
167  uint32_t environmentBlendModeCapacityInput,
168  uint32_t *environmentBlendModeCountOutput,
169  XrEnvironmentBlendMode *environmentBlendModes);
170 
171 #ifdef XR_USE_GRAPHICS_API_OPENGL
172 //! OpenXR API function @ep{xrGetOpenGLGraphicsRequirementsKHR}
173 XRAPI_ATTR XrResult XRAPI_CALL
175  XrInstance instance,
176  XrSystemId systemId,
177  XrGraphicsRequirementsOpenGLKHR *graphicsRequirements);
178 #endif
179 
180 #ifdef XR_USE_GRAPHICS_API_OPENGL_ES
181 //! OpenXR API function @ep{xrGetOpenGLESGraphicsRequirementsKHR}
182 XRAPI_ATTR XrResult XRAPI_CALL
183 oxr_xrGetOpenGLESGraphicsRequirementsKHR(
184  XrInstance instance,
185  XrSystemId systemId,
186  XrGraphicsRequirementsOpenGLESKHR *graphicsRequirements);
187 #endif
188 
189 #ifdef XR_USE_GRAPHICS_API_VULKAN
190 //! OpenXR API function @ep{xrGetVulkanInstanceExtensionsKHR}
191 XRAPI_ATTR XrResult XRAPI_CALL
192 oxr_xrGetVulkanInstanceExtensionsKHR(XrInstance instance,
193  XrSystemId systemId,
194  uint32_t namesCapacityInput,
195  uint32_t *namesCountOutput,
196  char *namesString);
197 
198 //! OpenXR API function @ep{xrGetVulkanDeviceExtensionsKHR}
199 XRAPI_ATTR XrResult XRAPI_CALL
200 oxr_xrGetVulkanDeviceExtensionsKHR(XrInstance instance,
201  XrSystemId systemId,
202  uint32_t namesCapacityInput,
203  uint32_t *namesCountOutput,
204  char *namesString);
205 
206 //! OpenXR API function @ep{xrGetVulkanGraphicsDeviceKHR}
207 XRAPI_ATTR XrResult XRAPI_CALL
208 oxr_xrGetVulkanGraphicsDeviceKHR(XrInstance instance,
209  XrSystemId systemId,
210  VkInstance vkInstance,
211  VkPhysicalDevice *vkPhysicalDevice);
212 
213 //! OpenXR API function @ep{xrGetVulkanGraphicsRequirementsKHR}
214 XRAPI_ATTR XrResult XRAPI_CALL
216  XrInstance instance,
217  XrSystemId systemId,
218  XrGraphicsRequirementsVulkanKHR *graphicsRequirements);
219 #endif
220 
221 
222 /*
223  *
224  * oxr_api_session.c
225  *
226  */
227 
228 //! OpenXR API function @ep{xrCreateSession}
229 XRAPI_ATTR XrResult XRAPI_CALL
230 oxr_xrCreateSession(XrInstance instance,
231  const XrSessionCreateInfo *createInfo,
232  XrSession *session);
233 
234 //! OpenXR API function @ep{xrDestroySession}
235 XRAPI_ATTR XrResult XRAPI_CALL
236 oxr_xrDestroySession(XrSession session);
237 
238 //! OpenXR API function @ep{xrBeginSession}
239 XRAPI_ATTR XrResult XRAPI_CALL
240 oxr_xrBeginSession(XrSession session, const XrSessionBeginInfo *beginInfo);
241 
242 //! OpenXR API function @ep{xrEndSession}
243 XRAPI_ATTR XrResult XRAPI_CALL
244 oxr_xrEndSession(XrSession session);
245 
246 //! OpenXR API function @ep{xrWaitFrame}
247 XRAPI_ATTR XrResult XRAPI_CALL
248 oxr_xrWaitFrame(XrSession session,
249  const XrFrameWaitInfo *frameWaitInfo,
250  XrFrameState *frameState);
251 
252 //! OpenXR API function @ep{xrBeginFrame}
253 XRAPI_ATTR XrResult XRAPI_CALL
254 oxr_xrBeginFrame(XrSession session, const XrFrameBeginInfo *frameBeginInfo);
255 
256 //! OpenXR API function @ep{xrEndFrame}
257 XRAPI_ATTR XrResult XRAPI_CALL
258 oxr_xrEndFrame(XrSession session, const XrFrameEndInfo *frameEndInfo);
259 
260 //! OpenXR API function @ep{xrRequestExitSession}
261 XRAPI_ATTR XrResult XRAPI_CALL
262 oxr_xrRequestExitSession(XrSession session);
263 
264 //! OpenXR API function @ep{xrLocateViews}
265 XRAPI_ATTR XrResult XRAPI_CALL
266 oxr_xrLocateViews(XrSession session,
267  const XrViewLocateInfo *viewLocateInfo,
268  XrViewState *viewState,
269  uint32_t viewCapacityInput,
270  uint32_t *viewCountOutput,
271  XrView *views);
272 
273 #ifdef OXR_HAVE_KHR_visibility_mask
274 //! OpenXR API function @ep{xrGetVisibilityMaskKHR}
275 XRAPI_ATTR XrResult XRAPI_CALL
276 oxr_xrGetVisibilityMaskKHR(XrSession session,
277  XrViewConfigurationType viewConfigurationType,
278  uint32_t viewIndex,
279  XrVisibilityMaskTypeKHR visibilityMaskType,
280  XrVisibilityMaskKHR *visibilityMask);
281 #endif // OXR_HAVE_KHR_visibility_mask
282 
283 #ifdef OXR_HAVE_EXT_performance_settings
284 //! OpenXR API function @ep{xrPerfSettingsSetPerformanceLevelEXT}
285 XRAPI_ATTR XrResult XRAPI_CALL
286 oxr_xrPerfSettingsSetPerformanceLevelEXT(XrSession session,
287  XrPerfSettingsDomainEXT domain,
288  XrPerfSettingsLevelEXT level);
289 #endif // OXR_HAVE_EXT_performance_settings
290 
291 #ifdef OXR_HAVE_EXT_thermal_query
292 //! OpenXR API function @ep{xrThermalGetTemperatureTrendEXT}
293 XRAPI_ATTR XrResult XRAPI_CALL
294 oxr_xrThermalGetTemperatureTrendEXT(
295  XrSession session,
296  XrPerfSettingsDomainEXT domain,
297  XrPerfSettingsNotificationLevelEXT *notificationLevel,
298  float *tempHeadroom,
299  float *tempSlope);
300 #endif // OXR_HAVE_EXT_thermal_query
301 
302 
303 /*
304  *
305  * oxr_api_space.c
306  *
307  */
308 
309 //! OpenXR API function @ep{xrEnumerateReferenceSpaces}
310 XRAPI_ATTR XrResult XRAPI_CALL
311 oxr_xrEnumerateReferenceSpaces(XrSession session,
312  uint32_t spaceCapacityInput,
313  uint32_t *spaceCountOutput,
314  XrReferenceSpaceType *spaces);
315 
316 //! OpenXR API function @ep{xrGetReferenceSpaceBoundsRect}
317 XRAPI_ATTR XrResult XRAPI_CALL
318 oxr_xrGetReferenceSpaceBoundsRect(XrSession session,
319  XrReferenceSpaceType referenceSpaceType,
320  XrExtent2Df *bounds);
321 
322 //! OpenXR API function @ep{xrCreateReferenceSpace}
323 XRAPI_ATTR XrResult XRAPI_CALL
324 oxr_xrCreateReferenceSpace(XrSession session,
325  const XrReferenceSpaceCreateInfo *createInfo,
326  XrSpace *space);
327 
328 //! OpenXR API function @ep{xrLocateSpace}
329 XRAPI_ATTR XrResult XRAPI_CALL
330 oxr_xrLocateSpace(XrSpace space,
331  XrSpace baseSpace,
332  XrTime time,
333  XrSpaceLocation *location);
334 
335 //! OpenXR API function @ep{xrDestroySpace}
336 XRAPI_ATTR XrResult XRAPI_CALL
337 oxr_xrDestroySpace(XrSpace space);
338 
339 
340 /*
341  *
342  * oxr_api_swapchain.c
343  *
344  */
345 
346 //! OpenXR API function @ep{xrEnumerateSwapchainFormats}
347 XRAPI_ATTR XrResult XRAPI_CALL
348 oxr_xrEnumerateSwapchainFormats(XrSession session,
349  uint32_t formatCapacityInput,
350  uint32_t *formatCountOutput,
351  int64_t *formats);
352 
353 //! OpenXR API function @ep{xrCreateSwapchain}
354 XRAPI_ATTR XrResult XRAPI_CALL
355 oxr_xrCreateSwapchain(XrSession session,
356  const XrSwapchainCreateInfo *createInfo,
357  XrSwapchain *swapchain);
358 
359 //! OpenXR API function @ep{xrDestroySwapchain}
360 XRAPI_ATTR XrResult XRAPI_CALL
361 oxr_xrDestroySwapchain(XrSwapchain swapchain);
362 
363 //! OpenXR API function @ep{xrEnumerateSwapchainImages}
364 XRAPI_ATTR XrResult XRAPI_CALL
365 oxr_xrEnumerateSwapchainImages(XrSwapchain swapchain,
366  uint32_t imageCapacityInput,
367  uint32_t *imageCountOutput,
368  XrSwapchainImageBaseHeader *images);
369 
370 //! OpenXR API function @ep{xrAcquireSwapchainImage}
371 XRAPI_ATTR XrResult XRAPI_CALL
372 oxr_xrAcquireSwapchainImage(XrSwapchain swapchain,
373  const XrSwapchainImageAcquireInfo *acquireInfo,
374  uint32_t *index);
375 
376 //! OpenXR API function @ep{xrWaitSwapchainImage}
377 XRAPI_ATTR XrResult XRAPI_CALL
378 oxr_xrWaitSwapchainImage(XrSwapchain swapchain,
379  const XrSwapchainImageWaitInfo *waitInfo);
380 
381 //! OpenXR API function @ep{xrReleaseSwapchainImage}
382 XRAPI_ATTR XrResult XRAPI_CALL
383 oxr_xrReleaseSwapchainImage(XrSwapchain swapchain,
384  const XrSwapchainImageReleaseInfo *releaseInfo);
385 
386 
387 /*
388  *
389  * oxr_api_debug.c
390  *
391  */
392 
393 //! OpenXR API function @ep{xrSetDebugUtilsObjectNameEXT}
394 XRAPI_ATTR XrResult XRAPI_CALL
395 oxr_xrSetDebugUtilsObjectNameEXT(XrInstance instance,
396  const XrDebugUtilsObjectNameInfoEXT *nameInfo);
397 
398 //! OpenXR API function @ep{xrCreateDebugUtilsMessengerEXT}
399 XRAPI_ATTR XrResult XRAPI_CALL
401  XrInstance instance,
402  const XrDebugUtilsMessengerCreateInfoEXT *createInfo,
403  XrDebugUtilsMessengerEXT *messenger);
404 
405 //! OpenXR API function @ep{xrDestroyDebugUtilsMessengerEXT}
406 XRAPI_ATTR XrResult XRAPI_CALL
407 oxr_xrDestroyDebugUtilsMessengerEXT(XrDebugUtilsMessengerEXT messenger);
408 
409 //! OpenXR API function @ep{xrSubmitDebugUtilsMessageEXT}
410 XRAPI_ATTR XrResult XRAPI_CALL
412  XrInstance instance,
413  XrDebugUtilsMessageSeverityFlagsEXT messageSeverity,
414  XrDebugUtilsMessageTypeFlagsEXT messageTypes,
415  const XrDebugUtilsMessengerCallbackDataEXT *callbackData);
416 
417 //! OpenXR API function @ep{xrSessionBeginDebugUtilsLabelRegionEXT}
418 XRAPI_ATTR XrResult XRAPI_CALL
420  XrSession session, const XrDebugUtilsLabelEXT *labelInfo);
421 
422 //! OpenXR API function @ep{xrSessionEndDebugUtilsLabelRegionEXT}
423 XRAPI_ATTR XrResult XRAPI_CALL
425 
426 //! OpenXR API function @ep{xrSessionInsertDebugUtilsLabelEXT}
427 XRAPI_ATTR XrResult XRAPI_CALL
428 oxr_xrSessionInsertDebugUtilsLabelEXT(XrSession session,
429  const XrDebugUtilsLabelEXT *labelInfo);
430 
431 
432 /*
433  *
434  * oxr_api_action.c
435  *
436  */
437 
438 //! OpenXR API function @ep{xrCreateActionSpace}
439 XRAPI_ATTR XrResult XRAPI_CALL
440 oxr_xrCreateActionSpace(XrSession session,
441  const XrActionSpaceCreateInfo *createInfo,
442  XrSpace *space);
443 
444 //! OpenXR API function @ep{xrCreateActionSet}
445 XRAPI_ATTR XrResult XRAPI_CALL
446 oxr_xrCreateActionSet(XrInstance instance,
447  const XrActionSetCreateInfo *createInfo,
448  XrActionSet *actionSet);
449 
450 //! OpenXR API function @ep{xrDestroyActionSet}
451 XRAPI_ATTR XrResult XRAPI_CALL
452 oxr_xrDestroyActionSet(XrActionSet actionSet);
453 
454 //! OpenXR API function @ep{xrCreateAction}
455 XRAPI_ATTR XrResult XRAPI_CALL
456 oxr_xrCreateAction(XrActionSet actionSet,
457  const XrActionCreateInfo *createInfo,
458  XrAction *action);
459 
460 //! OpenXR API function @ep{xrDestroyAction}
461 XRAPI_ATTR XrResult XRAPI_CALL
462 oxr_xrDestroyAction(XrAction action);
463 
464 //! OpenXR API function @ep{xrSuggestInteractionProfileBindings}
465 XRAPI_ATTR XrResult XRAPI_CALL
467  XrInstance instance,
468  const XrInteractionProfileSuggestedBinding *suggestedBindings);
469 
470 //! OpenXR API function @ep{xrAttachSessionActionSets}
471 XRAPI_ATTR XrResult XRAPI_CALL
472 oxr_xrAttachSessionActionSets(XrSession session,
473  const XrSessionActionSetsAttachInfo *bindInfo);
474 
475 //! OpenXR API function @ep{xrGetCurrentInteractionProfile}
476 XRAPI_ATTR XrResult XRAPI_CALL
478  XrSession session,
479  XrPath topLevelUserPath,
480  XrInteractionProfileState *interactionProfile);
481 
482 //! OpenXR API function @ep{xrGetActionStateBoolean}
483 XRAPI_ATTR XrResult XRAPI_CALL
484 oxr_xrGetActionStateBoolean(XrSession session,
485  const XrActionStateGetInfo *getInfo,
486  XrActionStateBoolean *data);
487 
488 //! OpenXR API function @ep{xrGetActionStateFloat}
489 XRAPI_ATTR XrResult XRAPI_CALL
490 oxr_xrGetActionStateFloat(XrSession session,
491  const XrActionStateGetInfo *getInfo,
492  XrActionStateFloat *data);
493 
494 //! OpenXR API function @ep{xrGetActionStateVector2f}
495 XRAPI_ATTR XrResult XRAPI_CALL
496 oxr_xrGetActionStateVector2f(XrSession session,
497  const XrActionStateGetInfo *getInfo,
498  XrActionStateVector2f *data);
499 
500 //! OpenXR API function @ep{xrGetActionStatePose}
501 XRAPI_ATTR XrResult XRAPI_CALL
502 oxr_xrGetActionStatePose(XrSession session,
503  const XrActionStateGetInfo *getInfo,
504  XrActionStatePose *data);
505 
506 //! OpenXR API function @ep{xrSyncActions}
507 XRAPI_ATTR XrResult XRAPI_CALL
508 oxr_xrSyncActions(XrSession session, const XrActionsSyncInfo *syncInfo);
509 
510 //! OpenXR API function @ep{xrEnumerateBoundSourcesForAction}
511 XRAPI_ATTR XrResult XRAPI_CALL
513  XrSession session,
514  const XrBoundSourcesForActionEnumerateInfo *enumerateInfo,
515  uint32_t sourceCapacityInput,
516  uint32_t *sourceCountOutput,
517  XrPath *sources);
518 
519 //! OpenXR API function @ep{xrGetInputSourceLocalizedName}
520 XRAPI_ATTR XrResult XRAPI_CALL
522  XrSession session,
523  const XrInputSourceLocalizedNameGetInfo *getInfo,
524  uint32_t bufferCapacityInput,
525  uint32_t *bufferCountOutput,
526  char *buffer);
527 
528 //! OpenXR API function @ep{xrApplyHapticFeedback}
529 XRAPI_ATTR XrResult XRAPI_CALL
530 oxr_xrApplyHapticFeedback(XrSession session,
531  const XrHapticActionInfo *hapticActionInfo,
532  const XrHapticBaseHeader *hapticEvent);
533 
534 //! OpenXR API function @ep{xrStopHapticFeedback}
535 XRAPI_ATTR XrResult XRAPI_CALL
536 oxr_xrStopHapticFeedback(XrSession session,
537  const XrHapticActionInfo *hapticActionInfo);
538 
539 
540 /*!
541  * @}
542  */
543 
544 
545 #ifdef __cplusplus
546 }
547 #endif
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetCurrentInteractionProfile(XrSession session, XrPath topLevelUserPath, XrInteractionProfileState *interactionProfile)
OpenXR API function xrGetCurrentInteractionProfile.
Definition: oxr_api_action.c:104
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetSystem(XrInstance instance, const XrSystemGetInfo *getInfo, XrSystemId *systemId)
OpenXR API function xrGetSystem.
Definition: oxr_api_system.c:43
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrBeginSession(XrSession session, const XrSessionBeginInfo *beginInfo)
OpenXR API function xrBeginSession.
Definition: oxr_api_session.c:82
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrStructureTypeToString(XrInstance instance, XrStructureType value, char buffer[XR_MAX_STRUCTURE_NAME_SIZE])
OpenXR API function xrStructureTypeToString.
Definition: oxr_api_instance.c:175
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateViewConfigurationViews(XrInstance instance, XrSystemId systemId, XrViewConfigurationType viewConfigurationType, uint32_t viewCapacityInput, uint32_t *viewCountOutput, XrViewConfigurationView *views)
OpenXR API function xrEnumerateViewConfigurationViews.
Definition: oxr_api_system.c:144
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrLocateViews(XrSession session, const XrViewLocateInfo *viewLocateInfo, XrViewState *viewState, uint32_t viewCapacityInput, uint32_t *viewCountOutput, XrView *views)
OpenXR API function xrLocateViews.
Definition: oxr_api_session.c:156
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSetDebugUtilsObjectNameEXT(XrInstance instance, const XrDebugUtilsObjectNameInfoEXT *nameInfo)
OpenXR API function xrSetDebugUtilsObjectNameEXT.
Definition: oxr_api_debug.c:19
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrStringToPath(XrInstance instance, const char *pathString, XrPath *path)
OpenXR API function xrStringToPath.
Definition: oxr_api_instance.c:198
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateSwapchainFormats(XrSession session, uint32_t formatCapacityInput, uint32_t *formatCountOutput, int64_t *formats)
OpenXR API function xrEnumerateSwapchainFormats.
Definition: oxr_api_swapchain.c:27
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrPollEvent(XrInstance instance, XrEventDataBuffer *eventData)
OpenXR API function xrPollEvent.
Definition: oxr_api_instance.c:141
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrApplyHapticFeedback(XrSession session, const XrHapticActionInfo *hapticActionInfo, const XrHapticBaseHeader *hapticEvent)
OpenXR API function xrApplyHapticFeedback.
Definition: oxr_api_action.c:403
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEndSession(XrSession session)
OpenXR API function xrEndSession.
Definition: oxr_api_session.c:94
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSyncActions(XrSession session, const XrActionsSyncInfo *syncInfo)
OpenXR API function xrSyncActions.
Definition: oxr_api_action.c:29
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroyInstance(XrInstance instance)
OpenXR API function xrDestroyInstance.
Definition: oxr_api_instance.c:118
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateReferenceSpace(XrSession session, const XrReferenceSpaceCreateInfo *createInfo, XrSpace *space)
OpenXR API function xrCreateReferenceSpace.
Definition: oxr_api_space.c:92
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, const XrDebugUtilsLabelEXT *labelInfo)
OpenXR API function xrSessionBeginDebugUtilsLabelRegionEXT.
Definition: oxr_api_debug.c:87
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateActionSpace(XrSession session, const XrActionSpaceCreateInfo *createInfo, XrSpace *space)
OpenXR API function xrCreateActionSpace.
Definition: oxr_api_space.c:28
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEndFrame(XrSession session, const XrFrameEndInfo *frameEndInfo)
OpenXR API function xrEndFrame.
Definition: oxr_api_session.c:133
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateViewConfigurations(XrInstance instance, XrSystemId systemId, uint32_t viewConfigurationTypeCapacityInput, uint32_t *viewConfigurationTypeCountOutput, XrViewConfigurationType *viewConfigurationTypes)
OpenXR API function xrEnumerateViewConfigurations.
Definition: oxr_api_system.c:86
Macros for generating extension-related tables and code and inspecting Monado&#39;s extension support...
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateSwapchainImages(XrSwapchain swapchain, uint32_t imageCapacityInput, uint32_t *imageCountOutput, XrSwapchainImageBaseHeader *images)
OpenXR API function xrEnumerateSwapchainImages.
Definition: oxr_api_swapchain.c:88
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetInstanceProperties(XrInstance instance, XrInstanceProperties *instanceProperties)
OpenXR API function xrGetInstanceProperties.
Definition: oxr_api_instance.c:129
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroyAction(XrAction action)
OpenXR API function xrDestroyAction.
Definition: oxr_api_action.c:232
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroySwapchain(XrSwapchain swapchain)
OpenXR API function xrDestroySwapchain.
Definition: oxr_api_swapchain.c:77
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetSystemProperties(XrInstance instance, XrSystemId systemId, XrSystemProperties *properties)
OpenXR API function xrGetSystemProperties.
Definition: oxr_api_system.c:70
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroySession(XrSession session)
OpenXR API function xrDestroySession.
Definition: oxr_api_session.c:62
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrLocateSpace(XrSpace space, XrSpace baseSpace, XrTime time, XrSpaceLocation *location)
OpenXR API function xrLocateSpace.
Definition: oxr_api_space.c:117
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroySpace(XrSpace space)
OpenXR API function xrDestroySpace.
Definition: oxr_api_space.c:134
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetVulkanGraphicsDeviceKHR(XrInstance instance, XrSystemId systemId, VkInstance vkInstance, VkPhysicalDevice *vkPhysicalDevice)
OpenXR API function xrGetVulkanGraphicsDeviceKHR.
Definition: oxr_api_system.c:286
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateEnvironmentBlendModes(XrInstance instance, XrSystemId systemId, XrViewConfigurationType viewConfigurationType, uint32_t environmentBlendModeCapacityInput, uint32_t *environmentBlendModeCountOutput, XrEnvironmentBlendMode *environmentBlendModes)
OpenXR API function xrEnumerateEnvironmentBlendModes.
Definition: oxr_api_system.c:105
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrAcquireSwapchainImage(XrSwapchain swapchain, const XrSwapchainImageAcquireInfo *acquireInfo, uint32_t *index)
OpenXR API function xrAcquireSwapchainImage.
Definition: oxr_api_swapchain.c:115
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrAttachSessionActionSets(XrSession session, const XrSessionActionSetsAttachInfo *bindInfo)
OpenXR API function xrAttachSessionActionSets.
Definition: oxr_api_action.c:57
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetInstanceProcAddr(XrInstance instance, const char *name, PFN_xrVoidFunction *function)
OpenXR API function xrGetInstanceProcAddr.
Definition: oxr_api_negotiate.c:284
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateSession(XrInstance instance, const XrSessionCreateInfo *createInfo, XrSession *session)
OpenXR API function xrCreateSession.
Definition: oxr_api_session.c:28
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetVulkanDeviceExtensionsKHR(XrInstance instance, XrSystemId systemId, uint32_t namesCapacityInput, uint32_t *namesCountOutput, char *namesString)
OpenXR API function xrGetVulkanDeviceExtensionsKHR.
Definition: oxr_api_system.c:266
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSuggestInteractionProfileBindings(XrInstance instance, const XrInteractionProfileSuggestedBinding *suggestedBindings)
OpenXR API function xrSuggestInteractionProfileBindings.
Definition: oxr_api_action.c:77
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateInstanceExtensionProperties(const char *layerName, uint32_t propertyCapacityInput, uint32_t *propertyCountOutput, XrExtensionProperties *properties)
OpenXR API function xrEnumerateInstanceExtensionProperties.
Definition: oxr_api_instance.c:38
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrBeginFrame(XrSession session, const XrFrameBeginInfo *frameBeginInfo)
OpenXR API function xrBeginFrame.
Definition: oxr_api_session.c:120
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrConvertTimespecTimeToTimeKHR(XrInstance instance, const struct timespec *timespecTime, XrTime *time)
OpenXR API function xrConvertTimespecTimeToTimeKHR.
Definition: oxr_api_instance.c:262
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrRequestExitSession(XrSession session)
OpenXR API function xrRequestExitSession.
Definition: oxr_api_session.c:145
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrConvertTimeToTimespecTimeKHR(XrInstance instance, XrTime time, struct timespec *timespecTime)
OpenXR API function xrConvertTimeToTimespecTimeKHR.
Definition: oxr_api_instance.c:281
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetActionStateBoolean(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateBoolean *data)
OpenXR API function xrGetActionStateBoolean.
Definition: oxr_api_action.c:242
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateInstance(const XrInstanceCreateInfo *createInfo, XrInstance *instance)
OpenXR API function xrCreateInstance.
Definition: oxr_api_instance.c:52
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateAction(XrActionSet actionSet, const XrActionCreateInfo *createInfo, XrAction *action)
OpenXR API function xrCreateAction.
Definition: oxr_api_action.c:194
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrWaitSwapchainImage(XrSwapchain swapchain, const XrSwapchainImageWaitInfo *waitInfo)
OpenXR API function xrWaitSwapchainImage.
Definition: oxr_api_swapchain.c:131
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateApiLayerProperties(uint32_t propertyCapacityInput, uint32_t *propertyCountOutput, XrApiLayerProperties *properties)
OpenXR API function xrEnumerateApiLayerProperties.
Definition: oxr_api_negotiate.c:86
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSessionInsertDebugUtilsLabelEXT(XrSession session, const XrDebugUtilsLabelEXT *labelInfo)
OpenXR API function xrSessionInsertDebugUtilsLabelEXT.
Definition: oxr_api_debug.c:112
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateActionSet(XrInstance instance, const XrActionSetCreateInfo *createInfo, XrActionSet *actionSet)
OpenXR API function xrCreateActionSet.
Definition: oxr_api_action.c:148
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrPathToString(XrInstance instance, XrPath path, uint32_t bufferCapacityInput, uint32_t *bufferCountOutput, char *buffer)
OpenXR API function xrPathToString.
Definition: oxr_api_instance.c:226
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetVulkanInstanceExtensionsKHR(XrInstance instance, XrSystemId systemId, uint32_t namesCapacityInput, uint32_t *namesCountOutput, char *namesString)
OpenXR API function xrGetVulkanInstanceExtensionsKHR.
Definition: oxr_api_system.c:249
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroyActionSet(XrActionSet actionSet)
OpenXR API function xrDestroyActionSet.
Definition: oxr_api_action.c:176
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSubmitDebugUtilsMessageEXT(XrInstance instance, XrDebugUtilsMessageSeverityFlagsEXT messageSeverity, XrDebugUtilsMessageTypeFlagsEXT messageTypes, const XrDebugUtilsMessengerCallbackDataEXT *callbackData)
OpenXR API function xrSubmitDebugUtilsMessageEXT.
Definition: oxr_api_debug.c:70
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetReferenceSpaceBoundsRect(XrSession session, XrReferenceSpaceType referenceSpaceType, XrExtent2Df *bounds)
OpenXR API function xrGetReferenceSpaceBoundsRect.
Definition: oxr_api_space.c:77
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateDebugUtilsMessengerEXT(XrInstance instance, const XrDebugUtilsMessengerCreateInfoEXT *createInfo, XrDebugUtilsMessengerEXT *messenger)
OpenXR API function xrCreateDebugUtilsMessengerEXT.
Definition: oxr_api_debug.c:31
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrWaitFrame(XrSession session, const XrFrameWaitInfo *frameWaitInfo, XrFrameState *frameState)
OpenXR API function xrWaitFrame.
Definition: oxr_api_session.c:104
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrReleaseSwapchainImage(XrSwapchain swapchain, const XrSwapchainImageReleaseInfo *releaseInfo)
OpenXR API function xrReleaseSwapchainImage.
Definition: oxr_api_swapchain.c:145
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetInputSourceLocalizedName(XrSession session, const XrInputSourceLocalizedNameGetInfo *getInfo, uint32_t bufferCapacityInput, uint32_t *bufferCountOutput, char *buffer)
OpenXR API function xrGetInputSourceLocalizedName.
Definition: oxr_api_action.c:122
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetVulkanGraphicsRequirementsKHR(XrInstance instance, XrSystemId systemId, XrGraphicsRequirementsVulkanKHR *graphicsRequirements)
OpenXR API function xrGetVulkanGraphicsRequirementsKHR.
Definition: oxr_api_system.c:304
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSessionEndDebugUtilsLabelRegionEXT(XrSession session)
OpenXR API function xrSessionEndDebugUtilsLabelRegionEXT.
Definition: oxr_api_debug.c:100
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateBoundSourcesForAction(XrSession session, const XrBoundSourcesForActionEnumerateInfo *enumerateInfo, uint32_t sourceCapacityInput, uint32_t *sourceCountOutput, XrPath *sources)
OpenXR API function xrEnumerateBoundSourcesForAction.
Definition: oxr_api_action.c:373
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetActionStateVector2f(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateVector2f *data)
OpenXR API function xrGetActionStateVector2f.
Definition: oxr_api_action.c:308
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateSwapchain(XrSession session, const XrSwapchainCreateInfo *createInfo, XrSwapchain *swapchain)
OpenXR API function xrCreateSwapchain.
Definition: oxr_api_swapchain.c:42
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetViewConfigurationProperties(XrInstance instance, XrSystemId systemId, XrViewConfigurationType viewConfigurationType, XrViewConfigurationProperties *configurationProperties)
OpenXR API function xrGetViewConfigurationProperties.
Definition: oxr_api_system.c:125
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrResultToString(XrInstance instance, XrResult value, char buffer[XR_MAX_RESULT_STRING_SIZE])
OpenXR API function xrResultToString.
Definition: oxr_api_instance.c:152
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateReferenceSpaces(XrSession session, uint32_t spaceCapacityInput, uint32_t *spaceCountOutput, XrReferenceSpaceType *spaces)
OpenXR API function xrEnumerateReferenceSpaces.
Definition: oxr_api_space.c:61
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetActionStateFloat(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateFloat *data)
OpenXR API function xrGetActionStateFloat.
Definition: oxr_api_action.c:275
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrStopHapticFeedback(XrSession session, const XrHapticActionInfo *hapticActionInfo)
OpenXR API function xrStopHapticFeedback.
Definition: oxr_api_action.c:437
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetActionStatePose(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStatePose *data)
OpenXR API function xrGetActionStatePose.
Definition: oxr_api_action.c:341
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroyDebugUtilsMessengerEXT(XrDebugUtilsMessengerEXT messenger)
OpenXR API function xrDestroyDebugUtilsMessengerEXT.
Definition: oxr_api_debug.c:58
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetOpenGLGraphicsRequirementsKHR(XrInstance instance, XrSystemId systemId, XrGraphicsRequirementsOpenGLKHR *graphicsRequirements)
OpenXR API function xrGetOpenGLGraphicsRequirementsKHR.
Definition: oxr_api_system.c:211