Monado OpenXR Runtime
Files | Functions
OpenXR entrypoints

Gets called from the client application, does most verification and routes calls into OpenXR main code functions. More...

Collaboration diagram for OpenXR entrypoints:

Files

file  oxr_api_action.c
 Action related API entrypoint functions.
 
file  oxr_api_debug.c
 Debug messaging entrypoints for the OpenXR state tracker.
 
file  oxr_api_funcs.h
 Header defining all API functions.
 
file  oxr_api_instance.c
 Holds instance related entrypoints.
 
file  oxr_api_negotiate.c
 File for negotiating with the loader.
 
file  oxr_api_session.c
 Session entrypoints for the OpenXR state tracker.
 
file  oxr_api_space.c
 Space, space, space, SPAAAAAAAAAAAAAAAAAAAAAAAAAACE!
 
file  oxr_api_swapchain.c
 Swapchain entrypoints for the OpenXR state tracker.
 
file  oxr_api_system.c
 Holds system related entrypoints.
 
file  oxr_api_verify.h
 File for verifying app input into api functions.
 
file  oxr_verify.c
 File for verifying app input into api functions.
 

Functions

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetInstanceProcAddr (XrInstance instance, const char *name, PFN_xrVoidFunction *function)
 OpenXR API function xrGetInstanceProcAddr. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateApiLayerProperties (uint32_t propertyCapacityInput, uint32_t *propertyCountOutput, XrApiLayerProperties *properties)
 OpenXR API function xrEnumerateApiLayerProperties. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateInstanceExtensionProperties (const char *layerName, uint32_t propertyCapacityInput, uint32_t *propertyCountOutput, XrExtensionProperties *properties)
 OpenXR API function xrEnumerateInstanceExtensionProperties. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateInstance (const XrInstanceCreateInfo *createInfo, XrInstance *instance)
 OpenXR API function xrCreateInstance. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroyInstance (XrInstance instance)
 OpenXR API function xrDestroyInstance. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetInstanceProperties (XrInstance instance, XrInstanceProperties *instanceProperties)
 OpenXR API function xrGetInstanceProperties. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrPollEvent (XrInstance instance, XrEventDataBuffer *eventData)
 OpenXR API function xrPollEvent. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrResultToString (XrInstance instance, XrResult value, char buffer[XR_MAX_RESULT_STRING_SIZE])
 OpenXR API function xrResultToString. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrStructureTypeToString (XrInstance instance, XrStructureType value, char buffer[XR_MAX_STRUCTURE_NAME_SIZE])
 OpenXR API function xrStructureTypeToString. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrStringToPath (XrInstance instance, const char *pathString, XrPath *path)
 OpenXR API function xrStringToPath. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrPathToString (XrInstance instance, XrPath path, uint32_t bufferCapacityInput, uint32_t *bufferCountOutput, char *buffer)
 OpenXR API function xrPathToString. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrConvertTimespecTimeToTimeKHR (XrInstance instance, const struct timespec *timespecTime, XrTime *time)
 OpenXR API function xrConvertTimespecTimeToTimeKHR. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrConvertTimeToTimespecTimeKHR (XrInstance instance, XrTime time, struct timespec *timespecTime)
 OpenXR API function xrConvertTimeToTimespecTimeKHR. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetSystem (XrInstance instance, const XrSystemGetInfo *getInfo, XrSystemId *systemId)
 OpenXR API function xrGetSystem. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetSystemProperties (XrInstance instance, XrSystemId systemId, XrSystemProperties *properties)
 OpenXR API function xrGetSystemProperties. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateViewConfigurations (XrInstance instance, XrSystemId systemId, uint32_t viewConfigurationTypeCapacityInput, uint32_t *viewConfigurationTypeCountOutput, XrViewConfigurationType *viewConfigurationTypes)
 OpenXR API function xrEnumerateViewConfigurations. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetViewConfigurationProperties (XrInstance instance, XrSystemId systemId, XrViewConfigurationType viewConfigurationType, XrViewConfigurationProperties *configurationProperties)
 OpenXR API function xrGetViewConfigurationProperties. More...
 
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. More...
 
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. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetOpenGLGraphicsRequirementsKHR (XrInstance instance, XrSystemId systemId, XrGraphicsRequirementsOpenGLKHR *graphicsRequirements)
 OpenXR API function xrGetOpenGLGraphicsRequirementsKHR. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetVulkanInstanceExtensionsKHR (XrInstance instance, XrSystemId systemId, uint32_t namesCapacityInput, uint32_t *namesCountOutput, char *namesString)
 OpenXR API function xrGetVulkanInstanceExtensionsKHR. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetVulkanDeviceExtensionsKHR (XrInstance instance, XrSystemId systemId, uint32_t namesCapacityInput, uint32_t *namesCountOutput, char *namesString)
 OpenXR API function xrGetVulkanDeviceExtensionsKHR. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetVulkanGraphicsDeviceKHR (XrInstance instance, XrSystemId systemId, VkInstance vkInstance, VkPhysicalDevice *vkPhysicalDevice)
 OpenXR API function xrGetVulkanGraphicsDeviceKHR. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetVulkanGraphicsRequirementsKHR (XrInstance instance, XrSystemId systemId, XrGraphicsRequirementsVulkanKHR *graphicsRequirements)
 OpenXR API function xrGetVulkanGraphicsRequirementsKHR. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateSession (XrInstance instance, const XrSessionCreateInfo *createInfo, XrSession *session)
 OpenXR API function xrCreateSession. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroySession (XrSession session)
 OpenXR API function xrDestroySession. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrBeginSession (XrSession session, const XrSessionBeginInfo *beginInfo)
 OpenXR API function xrBeginSession. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEndSession (XrSession session)
 OpenXR API function xrEndSession. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrWaitFrame (XrSession session, const XrFrameWaitInfo *frameWaitInfo, XrFrameState *frameState)
 OpenXR API function xrWaitFrame. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrBeginFrame (XrSession session, const XrFrameBeginInfo *frameBeginInfo)
 OpenXR API function xrBeginFrame. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEndFrame (XrSession session, const XrFrameEndInfo *frameEndInfo)
 OpenXR API function xrEndFrame. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrRequestExitSession (XrSession session)
 OpenXR API function xrRequestExitSession. More...
 
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. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateReferenceSpaces (XrSession session, uint32_t spaceCapacityInput, uint32_t *spaceCountOutput, XrReferenceSpaceType *spaces)
 OpenXR API function xrEnumerateReferenceSpaces. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetReferenceSpaceBoundsRect (XrSession session, XrReferenceSpaceType referenceSpaceType, XrExtent2Df *bounds)
 OpenXR API function xrGetReferenceSpaceBoundsRect. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateReferenceSpace (XrSession session, const XrReferenceSpaceCreateInfo *createInfo, XrSpace *space)
 OpenXR API function xrCreateReferenceSpace. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrLocateSpace (XrSpace space, XrSpace baseSpace, XrTime time, XrSpaceLocation *location)
 OpenXR API function xrLocateSpace. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroySpace (XrSpace space)
 OpenXR API function xrDestroySpace. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateSwapchainFormats (XrSession session, uint32_t formatCapacityInput, uint32_t *formatCountOutput, int64_t *formats)
 OpenXR API function xrEnumerateSwapchainFormats. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateSwapchain (XrSession session, const XrSwapchainCreateInfo *createInfo, XrSwapchain *swapchain)
 OpenXR API function xrCreateSwapchain. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroySwapchain (XrSwapchain swapchain)
 OpenXR API function xrDestroySwapchain. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateSwapchainImages (XrSwapchain swapchain, uint32_t imageCapacityInput, uint32_t *imageCountOutput, XrSwapchainImageBaseHeader *images)
 OpenXR API function xrEnumerateSwapchainImages. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrAcquireSwapchainImage (XrSwapchain swapchain, const XrSwapchainImageAcquireInfo *acquireInfo, uint32_t *index)
 OpenXR API function xrAcquireSwapchainImage. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrWaitSwapchainImage (XrSwapchain swapchain, const XrSwapchainImageWaitInfo *waitInfo)
 OpenXR API function xrWaitSwapchainImage. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrReleaseSwapchainImage (XrSwapchain swapchain, const XrSwapchainImageReleaseInfo *releaseInfo)
 OpenXR API function xrReleaseSwapchainImage. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSetDebugUtilsObjectNameEXT (XrInstance instance, const XrDebugUtilsObjectNameInfoEXT *nameInfo)
 OpenXR API function xrSetDebugUtilsObjectNameEXT. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateDebugUtilsMessengerEXT (XrInstance instance, const XrDebugUtilsMessengerCreateInfoEXT *createInfo, XrDebugUtilsMessengerEXT *messenger)
 OpenXR API function xrCreateDebugUtilsMessengerEXT. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroyDebugUtilsMessengerEXT (XrDebugUtilsMessengerEXT messenger)
 OpenXR API function xrDestroyDebugUtilsMessengerEXT. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSubmitDebugUtilsMessageEXT (XrInstance instance, XrDebugUtilsMessageSeverityFlagsEXT messageSeverity, XrDebugUtilsMessageTypeFlagsEXT messageTypes, const XrDebugUtilsMessengerCallbackDataEXT *callbackData)
 OpenXR API function xrSubmitDebugUtilsMessageEXT. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSessionBeginDebugUtilsLabelRegionEXT (XrSession session, const XrDebugUtilsLabelEXT *labelInfo)
 OpenXR API function xrSessionBeginDebugUtilsLabelRegionEXT. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSessionEndDebugUtilsLabelRegionEXT (XrSession session)
 OpenXR API function xrSessionEndDebugUtilsLabelRegionEXT. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSessionInsertDebugUtilsLabelEXT (XrSession session, const XrDebugUtilsLabelEXT *labelInfo)
 OpenXR API function xrSessionInsertDebugUtilsLabelEXT. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateActionSpace (XrSession session, const XrActionSpaceCreateInfo *createInfo, XrSpace *space)
 OpenXR API function xrCreateActionSpace. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateActionSet (XrInstance instance, const XrActionSetCreateInfo *createInfo, XrActionSet *actionSet)
 OpenXR API function xrCreateActionSet. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroyActionSet (XrActionSet actionSet)
 OpenXR API function xrDestroyActionSet. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateAction (XrActionSet actionSet, const XrActionCreateInfo *createInfo, XrAction *action)
 OpenXR API function xrCreateAction. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroyAction (XrAction action)
 OpenXR API function xrDestroyAction. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSuggestInteractionProfileBindings (XrInstance instance, const XrInteractionProfileSuggestedBinding *suggestedBindings)
 OpenXR API function xrSuggestInteractionProfileBindings. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrAttachSessionActionSets (XrSession session, const XrSessionActionSetsAttachInfo *bindInfo)
 OpenXR API function xrAttachSessionActionSets. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetCurrentInteractionProfile (XrSession session, XrPath topLevelUserPath, XrInteractionProfileState *interactionProfile)
 OpenXR API function xrGetCurrentInteractionProfile. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetActionStateBoolean (XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateBoolean *data)
 OpenXR API function xrGetActionStateBoolean. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetActionStateFloat (XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateFloat *data)
 OpenXR API function xrGetActionStateFloat. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetActionStateVector2f (XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateVector2f *data)
 OpenXR API function xrGetActionStateVector2f. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetActionStatePose (XrSession session, const XrActionStateGetInfo *getInfo, XrActionStatePose *data)
 OpenXR API function xrGetActionStatePose. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSyncActions (XrSession session, const XrActionsSyncInfo *syncInfo)
 OpenXR API function xrSyncActions. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateBoundSourcesForAction (XrSession session, const XrBoundSourcesForActionEnumerateInfo *enumerateInfo, uint32_t sourceCapacityInput, uint32_t *sourceCountOutput, XrPath *sources)
 OpenXR API function xrEnumerateBoundSourcesForAction. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetInputSourceLocalizedName (XrSession session, const XrInputSourceLocalizedNameGetInfo *getInfo, uint32_t bufferCapacityInput, uint32_t *bufferCountOutput, char *buffer)
 OpenXR API function xrGetInputSourceLocalizedName. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrApplyHapticFeedback (XrSession session, const XrHapticActionInfo *hapticActionInfo, const XrHapticBaseHeader *hapticEvent)
 OpenXR API function xrApplyHapticFeedback. More...
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrStopHapticFeedback (XrSession session, const XrHapticActionInfo *hapticActionInfo)
 OpenXR API function xrStopHapticFeedback. More...
 
XrResult oxr_verify_full_path_c (struct oxr_logger *log, const char *path, const char *name)
 
XrResult oxr_verify_full_path (struct oxr_logger *log, const char *path, size_t length, const char *name)
 Verify a full path. More...
 
XrResult oxr_verify_fixed_size_single_level_path (struct oxr_logger *, const char *path, uint32_t array_size, const char *name)
 Verify a single path level that sits inside of a fixed sized array. More...
 
XrResult oxr_verify_localized_name (struct oxr_logger *, const char *string, uint32_t array_size, const char *name)
 Verify an arbitrary UTF-8 string that sits inside of a fixed sized array. More...
 
XrResult oxr_verify_subaction_paths_create (struct oxr_logger *log, struct oxr_instance *inst, uint32_t countSubactionPaths, const XrPath *subactionPaths, const char *variable)
 Verify a set of subaction paths for action creation. More...
 
XrResult oxr_verify_subaction_path_sync (struct oxr_logger *log, struct oxr_instance *inst, XrPath path, uint32_t index)
 Verify a set of subaction paths for action sync. More...
 
XrResult oxr_verify_subaction_path_get (struct oxr_logger *log, struct oxr_instance *inst, XrPath path, const struct oxr_sub_paths *act_sub_paths, struct oxr_sub_paths *out_sub_paths, const char *variable)
 Verify a set of subaction paths for action state get. More...
 
XrResult oxr_verify_XrSessionCreateInfo (struct oxr_logger *, const struct oxr_instance *, const XrSessionCreateInfo *)
 
XrResult oxr_verify_XrGraphicsBindingOpenGLXlibKHR (struct oxr_logger *, const XrGraphicsBindingOpenGLXlibKHR *)
 
XrResult oxr_verify_XrGraphicsBindingVulkanKHR (struct oxr_logger *, const XrGraphicsBindingVulkanKHR *)
 
#define OXR_VERIFY_INSTANCE_AND_INIT_LOG(log, thing, new_thing, name)   _OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, INSTANCE, name, new_thing)
 
#define OXR_VERIFY_MESSENGER_AND_INIT_LOG(log, thing, new_thing, name)   _OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, MESSENGER, name, new_thing->inst)
 
#define OXR_VERIFY_SESSION_AND_INIT_LOG(log, thing, new_thing, name)   _OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, SESSION, name, new_thing->sys->inst)
 
#define OXR_VERIFY_SPACE_AND_INIT_LOG(log, thing, new_thing, name)   _OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, SPACE, name, new_thing->sess->sys->inst)
 
#define OXR_VERIFY_ACTION_AND_INIT_LOG(log, thing, new_thing, name)   _OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, ACTION, name, new_thing->act_set->inst)
 
#define OXR_VERIFY_SWAPCHAIN_AND_INIT_LOG(log, thing, new_thing, name)   _OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, SWAPCHAIN, name, new_thing->sess->sys->inst)
 
#define OXR_VERIFY_ACTIONSET_AND_INIT_LOG(log, thing, new_thing, name)   _OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, ACTIONSET, name, new_thing->inst)
 
#define OXR_VERIFY_INSTANCE_NOT_NULL(log, arg, new_arg)   _OXR_VERIFY_SET(log, arg, new_arg, INSTANCE);
 
#define OXR_VERIFY_MESSENGER_NOT_NULL(log, arg, new_arg)   _OXR_VERIFY_SET(log, arg, new_arg, MESSENGER);
 
#define OXR_VERIFY_SESSION_NOT_NULL(log, arg, new_arg)   _OXR_VERIFY_SET(log, arg, new_arg, SESSION);
 
#define OXR_VERIFY_SPACE_NOT_NULL(log, arg, new_arg)   _OXR_VERIFY_SET(log, arg, new_arg, SPACE);
 
#define OXR_VERIFY_ACTION_NOT_NULL(log, arg, new_arg)   _OXR_VERIFY_SET(log, arg, new_arg, ACTION);
 
#define OXR_VERIFY_SWAPCHAIN_NOT_NULL(log, arg, new_arg)   _OXR_VERIFY_SET(log, arg, new_arg, SWAPCHAIN);
 
#define OXR_VERIFY_ACTIONSET_NOT_NULL(log, arg, new_arg)   _OXR_VERIFY_SET(log, arg, new_arg, ACTIONSET);
 
#define OXR_VERIFY_EXTENSION(log, inst, mixed_case_name)
 Checks if a required extension is enabled. More...
 
#define OXR_VERIFY_ARG_NOT_NULL(log, arg)
 
#define OXR_VERIFY_ARG_NOT_ZERO(log, arg)
 
#define OXR_VERIFY_ARG_TYPE_CAN_BE_NULL(log, arg, type_enum)
 
#define OXR_VERIFY_ARG_TYPE_AND_NOT_NULL(log, arg, type_enum)
 
#define OXR_VERIFY_SUBACTION_PATHS(log, count, paths)
 
#define OXR_VERIFY_ARG_SINGLE_LEVEL_FIXED_LENGTH_PATH(log, path)
 
#define OXR_VERIFY_ARG_LOCALIZED_NAME(log, string)
 
#define OXR_VERIFY_POSE(log, p)
 

Detailed Description

Gets called from the client application, does most verification and routes calls into OpenXR main code functions.

Macro Definition Documentation

◆ OXR_VERIFY_ACTION_AND_INIT_LOG

#define OXR_VERIFY_ACTION_AND_INIT_LOG (   log,
  thing,
  new_thing,
  name 
)    _OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, ACTION, name, new_thing->act_set->inst)

◆ OXR_VERIFY_ACTION_NOT_NULL

#define OXR_VERIFY_ACTION_NOT_NULL (   log,
  arg,
  new_arg 
)    _OXR_VERIFY_SET(log, arg, new_arg, ACTION);

◆ OXR_VERIFY_ACTIONSET_AND_INIT_LOG

#define OXR_VERIFY_ACTIONSET_AND_INIT_LOG (   log,
  thing,
  new_thing,
  name 
)    _OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, ACTIONSET, name, new_thing->inst)

◆ OXR_VERIFY_ACTIONSET_NOT_NULL

#define OXR_VERIFY_ACTIONSET_NOT_NULL (   log,
  arg,
  new_arg 
)    _OXR_VERIFY_SET(log, arg, new_arg, ACTIONSET);

◆ OXR_VERIFY_ARG_LOCALIZED_NAME

#define OXR_VERIFY_ARG_LOCALIZED_NAME (   log,
  string 
)

#include <state_trackers/oxr/oxr_api_verify.h>

Value:
do { \
XrResult verify_ret = oxr_verify_localized_name( \
log, string, ARRAY_SIZE(string), #string); \
if (verify_ret != XR_SUCCESS) { \
return verify_ret; \
} \
} while (false)
XrResult oxr_verify_localized_name(struct oxr_logger *, const char *string, uint32_t array_size, const char *name)
Verify an arbitrary UTF-8 string that sits inside of a fixed sized array.
Definition: oxr_verify.c:102
#define ARRAY_SIZE(a)
Array size helper.
Definition: xrt_compiler.h:24

Referenced by oxr_xrCreateAction(), and oxr_xrCreateActionSet().

◆ OXR_VERIFY_ARG_NOT_NULL

#define OXR_VERIFY_ARG_NOT_NULL (   log,
  arg 
)

#include <state_trackers/oxr/oxr_api_verify.h>

Value:
do { \
if (arg == NULL) { \
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
"(" #arg " == NULL)"); \
} \
} while (false)
XrResult oxr_error(struct oxr_logger *logger, XrResult result, const char *fmt,...)
Definition: oxr_logger.c:79

Referenced by oxr_xrAcquireSwapchainImage(), oxr_xrConvertTimespecTimeToTimeKHR(), oxr_xrConvertTimeToTimespecTimeKHR(), oxr_xrCreateAction(), oxr_xrCreateActionSet(), oxr_xrCreateDebugUtilsMessengerEXT(), oxr_xrCreateSwapchain(), oxr_xrGetSystem(), oxr_xrGetVulkanGraphicsDeviceKHR(), oxr_xrLocateViews(), oxr_xrPollEvent(), and oxr_xrWaitFrame().

◆ OXR_VERIFY_ARG_NOT_ZERO

#define OXR_VERIFY_ARG_NOT_ZERO (   log,
  arg 
)

#include <state_trackers/oxr/oxr_api_verify.h>

Value:
do { \
if (arg == 0) { \
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
"(" #arg " == 0) must be non-zero"); \
} \
} while (false)
XrResult oxr_error(struct oxr_logger *logger, XrResult result, const char *fmt,...)
Definition: oxr_logger.c:79

Referenced by oxr_xrCreateSwapchain().

◆ OXR_VERIFY_ARG_SINGLE_LEVEL_FIXED_LENGTH_PATH

#define OXR_VERIFY_ARG_SINGLE_LEVEL_FIXED_LENGTH_PATH (   log,
  path 
)

#include <state_trackers/oxr/oxr_api_verify.h>

Value:
do { \
XrResult verify_ret = oxr_verify_fixed_size_single_level_path( \
log, path, ARRAY_SIZE(path), #path); \
if (verify_ret != XR_SUCCESS) { \
return verify_ret; \
} \
} while (false)
XrResult oxr_verify_fixed_size_single_level_path(struct oxr_logger *, const char *path, uint32_t array_size, const char *name)
Verify a single path level that sits inside of a fixed sized array.
Definition: oxr_verify.c:62
#define ARRAY_SIZE(a)
Array size helper.
Definition: xrt_compiler.h:24

Referenced by oxr_xrCreateAction(), and oxr_xrCreateActionSet().

◆ OXR_VERIFY_ARG_TYPE_AND_NOT_NULL

#define OXR_VERIFY_ARG_TYPE_AND_NOT_NULL (   log,
  arg,
  type_enum 
)

◆ OXR_VERIFY_ARG_TYPE_CAN_BE_NULL

#define OXR_VERIFY_ARG_TYPE_CAN_BE_NULL (   log,
  arg,
  type_enum 
)

#include <state_trackers/oxr/oxr_api_verify.h>

Value:
do { \
if (arg != NULL && arg->type != type_enum) { \
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
"(" #arg "->type == %u)", arg->type); \
} \
} while (false)
XrResult oxr_error(struct oxr_logger *logger, XrResult result, const char *fmt,...)
Definition: oxr_logger.c:79

Referenced by oxr_xrAcquireSwapchainImage(), oxr_xrBeginFrame(), oxr_xrReleaseSwapchainImage(), and oxr_xrWaitFrame().

◆ OXR_VERIFY_EXTENSION

#define OXR_VERIFY_EXTENSION (   log,
  inst,
  mixed_case_name 
)

#include <state_trackers/oxr/oxr_api_verify.h>

Value:
do { \
if (!(inst)->extensions.mixed_case_name) { \
return oxr_error((log), XR_ERROR_FUNCTION_UNSUPPORTED, \
" Requires XR_" #mixed_case_name \
" extension enabled"); \
} \
} while (false)
XrResult oxr_error(struct oxr_logger *logger, XrResult result, const char *fmt,...)
Definition: oxr_logger.c:79
struct oxr_instance * inst
Definition: oxr_objects.h:861

Checks if a required extension is enabled.

mixed_case_name should be the extension name without the XR_ prefix.

Referenced by oxr_verify_XrSessionCreateInfo(), oxr_xrConvertTimespecTimeToTimeKHR(), oxr_xrConvertTimeToTimespecTimeKHR(), oxr_xrCreateDebugUtilsMessengerEXT(), oxr_xrDestroyDebugUtilsMessengerEXT(), oxr_xrSessionBeginDebugUtilsLabelRegionEXT(), oxr_xrSessionEndDebugUtilsLabelRegionEXT(), oxr_xrSessionInsertDebugUtilsLabelEXT(), oxr_xrSetDebugUtilsObjectNameEXT(), and oxr_xrSubmitDebugUtilsMessageEXT().

◆ OXR_VERIFY_INSTANCE_AND_INIT_LOG

#define OXR_VERIFY_INSTANCE_AND_INIT_LOG (   log,
  thing,
  new_thing,
  name 
)    _OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, INSTANCE, name, new_thing)

◆ OXR_VERIFY_INSTANCE_NOT_NULL

#define OXR_VERIFY_INSTANCE_NOT_NULL (   log,
  arg,
  new_arg 
)    _OXR_VERIFY_SET(log, arg, new_arg, INSTANCE);

◆ OXR_VERIFY_MESSENGER_AND_INIT_LOG

#define OXR_VERIFY_MESSENGER_AND_INIT_LOG (   log,
  thing,
  new_thing,
  name 
)    _OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, MESSENGER, name, new_thing->inst)

◆ OXR_VERIFY_MESSENGER_NOT_NULL

#define OXR_VERIFY_MESSENGER_NOT_NULL (   log,
  arg,
  new_arg 
)    _OXR_VERIFY_SET(log, arg, new_arg, MESSENGER);

◆ OXR_VERIFY_POSE

#define OXR_VERIFY_POSE (   log,
 
)

#include <state_trackers/oxr/oxr_api_verify.h>

Value:
do { \
if (!math_quat_validate((struct xrt_quat *)&p.orientation)) { \
return oxr_error(log, XR_ERROR_POSE_INVALID, \
"(" #p \
".orientation) is not a valid quat"); \
} \
\
if (!math_vec3_validate((struct xrt_vec3 *)&p.position)) { \
return oxr_error(log, XR_ERROR_POSE_INVALID, \
"(" #p ".position) is not valid"); \
} \
} while (false)
A 3 element vector with single floats.
Definition: xrt_defines.h:133
bool math_vec3_validate(const struct xrt_vec3 *vec3)
Check if this vec3 is valid for math operations.
Definition: m_base.cpp:61
A quaternion with single floats.
Definition: xrt_defines.h:99
XrResult oxr_error(struct oxr_logger *logger, XrResult result, const char *fmt,...)
Definition: oxr_logger.c:79
bool math_quat_validate(const struct xrt_quat *quat)
Check if this quat can be used in transformation operations.
Definition: m_base.cpp:136

Referenced by oxr_xrCreateActionSpace(), and oxr_xrCreateReferenceSpace().

◆ OXR_VERIFY_SESSION_AND_INIT_LOG

#define OXR_VERIFY_SESSION_AND_INIT_LOG (   log,
  thing,
  new_thing,
  name 
)    _OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, SESSION, name, new_thing->sys->inst)

◆ OXR_VERIFY_SESSION_NOT_NULL

#define OXR_VERIFY_SESSION_NOT_NULL (   log,
  arg,
  new_arg 
)    _OXR_VERIFY_SET(log, arg, new_arg, SESSION);

◆ OXR_VERIFY_SPACE_AND_INIT_LOG

#define OXR_VERIFY_SPACE_AND_INIT_LOG (   log,
  thing,
  new_thing,
  name 
)    _OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, SPACE, name, new_thing->sess->sys->inst)

◆ OXR_VERIFY_SPACE_NOT_NULL

#define OXR_VERIFY_SPACE_NOT_NULL (   log,
  arg,
  new_arg 
)    _OXR_VERIFY_SET(log, arg, new_arg, SPACE);

◆ OXR_VERIFY_SUBACTION_PATHS

#define OXR_VERIFY_SUBACTION_PATHS (   log,
  count,
  paths 
)

#include <state_trackers/oxr/oxr_api_verify.h>

Value:
do { \
if (count > 0 && paths == NULL) { \
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
" " #count " is not zero but " #paths \
" is NULL"); \
} \
} while (false)
XrResult oxr_error(struct oxr_logger *logger, XrResult result, const char *fmt,...)
Definition: oxr_logger.c:79

◆ OXR_VERIFY_SWAPCHAIN_AND_INIT_LOG

#define OXR_VERIFY_SWAPCHAIN_AND_INIT_LOG (   log,
  thing,
  new_thing,
  name 
)    _OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, SWAPCHAIN, name, new_thing->sess->sys->inst)

◆ OXR_VERIFY_SWAPCHAIN_NOT_NULL

#define OXR_VERIFY_SWAPCHAIN_NOT_NULL (   log,
  arg,
  new_arg 
)    _OXR_VERIFY_SET(log, arg, new_arg, SWAPCHAIN);

Function Documentation

◆ oxr_verify_fixed_size_single_level_path()

XrResult oxr_verify_fixed_size_single_level_path ( struct oxr_logger ,
const char *  path,
uint32_t  array_size,
const char *  name 
)

#include <state_trackers/oxr/oxr_api_verify.h>

Verify a single path level that sits inside of a fixed sized array.

References oxr_error().

◆ oxr_verify_full_path()

XrResult oxr_verify_full_path ( struct oxr_logger log,
const char *  path,
size_t  length,
const char *  name 
)

#include <state_trackers/oxr/oxr_api_verify.h>

Verify a full path.

Length not including zero terminator character but must be there.

References oxr_error(), VERIFY_SLASH, VERIFY_SLASHDOTS, and VERIFY_START.

Referenced by oxr_verify_full_path_c().

◆ oxr_verify_full_path_c()

XrResult oxr_verify_full_path_c ( struct oxr_logger log,
const char *  path,
const char *  name 
)

◆ oxr_verify_localized_name()

XrResult oxr_verify_localized_name ( struct oxr_logger ,
const char *  string,
uint32_t  array_size,
const char *  name 
)

#include <state_trackers/oxr/oxr_api_verify.h>

Verify an arbitrary UTF-8 string that sits inside of a fixed sized array.

References oxr_error().

◆ oxr_verify_subaction_path_get()

XrResult oxr_verify_subaction_path_get ( struct oxr_logger log,
struct oxr_instance inst,
XrPath  path,
const struct oxr_sub_paths act_sub_paths,
struct oxr_sub_paths out_sub_paths,
const char *  variable 
)

◆ oxr_verify_subaction_path_sync()

XrResult oxr_verify_subaction_path_sync ( struct oxr_logger log,
struct oxr_instance inst,
XrPath  path,
uint32_t  index 
)

◆ oxr_verify_subaction_paths_create()

XrResult oxr_verify_subaction_paths_create ( struct oxr_logger log,
struct oxr_instance inst,
uint32_t  countSubactionPaths,
const XrPath *  subactionPaths,
const char *  variable 
)

#include <state_trackers/oxr/oxr_api_verify.h>

Verify a set of subaction paths for action creation.

Referenced by oxr_xrCreateAction().

◆ oxr_verify_XrGraphicsBindingOpenGLXlibKHR()

XrResult oxr_verify_XrGraphicsBindingOpenGLXlibKHR ( struct oxr_logger ,
const XrGraphicsBindingOpenGLXlibKHR *   
)

◆ oxr_verify_XrGraphicsBindingVulkanKHR()

XrResult oxr_verify_XrGraphicsBindingVulkanKHR ( struct oxr_logger ,
const XrGraphicsBindingVulkanKHR *   
)

◆ oxr_verify_XrSessionCreateInfo()

XrResult oxr_verify_XrSessionCreateInfo ( struct oxr_logger ,
const struct oxr_instance ,
const XrSessionCreateInfo *   
)

◆ oxr_xrAcquireSwapchainImage()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrAcquireSwapchainImage ( XrSwapchain  swapchain,
const XrSwapchainImageAcquireInfo *  acquireInfo,
uint32_t *  index 
)

◆ oxr_xrApplyHapticFeedback()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrApplyHapticFeedback ( XrSession  session,
const XrHapticActionInfo *  hapticActionInfo,
const XrHapticBaseHeader *  hapticEvent 
)

◆ oxr_xrAttachSessionActionSets()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrAttachSessionActionSets ( XrSession  session,
const XrSessionActionSetsAttachInfo *  bindInfo 
)

◆ oxr_xrBeginFrame()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrBeginFrame ( XrSession  session,
const XrFrameBeginInfo *  frameBeginInfo 
)

◆ oxr_xrBeginSession()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrBeginSession ( XrSession  session,
const XrSessionBeginInfo *  beginInfo 
)

◆ oxr_xrConvertTimespecTimeToTimeKHR()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrConvertTimespecTimeToTimeKHR ( XrInstance  instance,
const struct timespec *  timespecTime,
XrTime *  time 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrConvertTimespecTimeToTimeKHR.

OpenXR Entry Point:
xrConvertTimespecTimeToTimeKHR
Todo:
do we need to check and see if this extension was enabled first?

References oxr_instance_convert_timespec_to_time(), OXR_VERIFY_ARG_NOT_NULL, OXR_VERIFY_EXTENSION, and OXR_VERIFY_INSTANCE_AND_INIT_LOG.

◆ oxr_xrConvertTimeToTimespecTimeKHR()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrConvertTimeToTimespecTimeKHR ( XrInstance  instance,
XrTime  time,
struct timespec *  timespecTime 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrConvertTimeToTimespecTimeKHR.

OpenXR Entry Point:
xrConvertTimeToTimespecTimeKHR

References oxr_instance_convert_time_to_timespec(), OXR_VERIFY_ARG_NOT_NULL, OXR_VERIFY_EXTENSION, and OXR_VERIFY_INSTANCE_AND_INIT_LOG.

◆ oxr_xrCreateAction()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateAction ( XrActionSet  actionSet,
const XrActionCreateInfo *  createInfo,
XrAction *  action 
)

◆ oxr_xrCreateActionSet()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateActionSet ( XrInstance  instance,
const XrActionSetCreateInfo *  createInfo,
XrActionSet *  actionSet 
)

◆ oxr_xrCreateActionSpace()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateActionSpace ( XrSession  session,
const XrActionSpaceCreateInfo *  createInfo,
XrSpace *  space 
)

◆ oxr_xrCreateDebugUtilsMessengerEXT()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateDebugUtilsMessengerEXT ( XrInstance  instance,
const XrDebugUtilsMessengerCreateInfoEXT *  createInfo,
XrDebugUtilsMessengerEXT *  messenger 
)

◆ oxr_xrCreateInstance()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateInstance ( const XrInstanceCreateInfo *  createInfo,
XrInstance *  instance 
)

◆ oxr_xrCreateReferenceSpace()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateReferenceSpace ( XrSession  session,
const XrReferenceSpaceCreateInfo *  createInfo,
XrSpace *  space 
)

◆ oxr_xrCreateSession()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateSession ( XrInstance  instance,
const XrSessionCreateInfo *  createInfo,
XrSession *  session 
)

◆ oxr_xrCreateSwapchain()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateSwapchain ( XrSession  session,
const XrSwapchainCreateInfo *  createInfo,
XrSwapchain *  swapchain 
)

◆ oxr_xrDestroyAction()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroyAction ( XrAction  action)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrDestroyAction.

OpenXR Entry Point:
xrDestroyAction

References oxr_action::handle, oxr_handle_destroy(), and OXR_VERIFY_ACTION_AND_INIT_LOG.

◆ oxr_xrDestroyActionSet()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroyActionSet ( XrActionSet  actionSet)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrDestroyActionSet.

OpenXR Entry Point:
xrDestroyActionSet

References oxr_action_set::handle, oxr_handle_destroy(), and OXR_VERIFY_ACTIONSET_AND_INIT_LOG.

◆ oxr_xrDestroyDebugUtilsMessengerEXT()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroyDebugUtilsMessengerEXT ( XrDebugUtilsMessengerEXT  messenger)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrDestroyDebugUtilsMessengerEXT.

OpenXR Entry Point:
xrDestroyDebugUtilsMessengerEXT

References oxr_debug_messenger::handle, oxr_debug_messenger::inst, oxr_handle_destroy(), OXR_VERIFY_EXTENSION, and OXR_VERIFY_MESSENGER_AND_INIT_LOG.

◆ oxr_xrDestroyInstance()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroyInstance ( XrInstance  instance)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrDestroyInstance.

OpenXR Entry Point:
xrDestroyInstance

References oxr_instance::handle, oxr_handle_destroy(), and OXR_VERIFY_INSTANCE_AND_INIT_LOG.

◆ oxr_xrDestroySession()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroySession ( XrSession  session)

◆ oxr_xrDestroySpace()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroySpace ( XrSpace  space)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrDestroySpace.

OpenXR Entry Point:
xrDestroySpace

References oxr_space::handle, oxr_handle_destroy(), and OXR_VERIFY_SPACE_AND_INIT_LOG.

◆ oxr_xrDestroySwapchain()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroySwapchain ( XrSwapchain  swapchain)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrDestroySwapchain.

OpenXR Entry Point:
xrDestroySwapchain

References oxr_swapchain::handle, oxr_handle_destroy(), and OXR_VERIFY_SWAPCHAIN_AND_INIT_LOG.

◆ oxr_xrEndFrame()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEndFrame ( XrSession  session,
const XrFrameEndInfo *  frameEndInfo 
)

◆ oxr_xrEndSession()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEndSession ( XrSession  session)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrEndSession.

OpenXR Entry Point:
xrEndSession

References oxr_session_end(), and OXR_VERIFY_SESSION_AND_INIT_LOG.

◆ oxr_xrEnumerateApiLayerProperties()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateApiLayerProperties ( uint32_t  propertyCapacityInput,
uint32_t *  propertyCountOutput,
XrApiLayerProperties *  properties 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrEnumerateApiLayerProperties.

OpenXR Entry Point:
xrEnumerateApiLayerProperties

References oxr_log_init().

◆ oxr_xrEnumerateBoundSourcesForAction()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateBoundSourcesForAction ( XrSession  session,
const XrBoundSourcesForActionEnumerateInfo *  enumerateInfo,
uint32_t  sourceCapacityInput,
uint32_t *  sourceCountOutput,
XrPath *  sources 
)

◆ oxr_xrEnumerateEnvironmentBlendModes()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateEnvironmentBlendModes ( XrInstance  instance,
XrSystemId  systemId,
XrViewConfigurationType  viewConfigurationType,
uint32_t  environmentBlendModeCapacityInput,
uint32_t *  environmentBlendModeCountOutput,
XrEnvironmentBlendMode *  environmentBlendModes 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrEnumerateEnvironmentBlendModes.

OpenXR Entry Point:
xrEnumerateEnvironmentBlendModes

References oxr_system_enumerate_blend_modes(), OXR_VERIFY_INSTANCE_AND_INIT_LOG, and OXR_VERIFY_SYSTEM_AND_GET.

◆ oxr_xrEnumerateInstanceExtensionProperties()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateInstanceExtensionProperties ( const char *  layerName,
uint32_t  propertyCapacityInput,
uint32_t *  propertyCountOutput,
XrExtensionProperties *  properties 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrEnumerateInstanceExtensionProperties.

OpenXR Entry Point:
xrEnumerateInstanceExtensionProperties

References ARRAY_SIZE, oxr_log_init(), and OXR_TWO_CALL_HELPER.

◆ oxr_xrEnumerateReferenceSpaces()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateReferenceSpaces ( XrSession  session,
uint32_t  spaceCapacityInput,
uint32_t *  spaceCountOutput,
XrReferenceSpaceType *  spaces 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrEnumerateReferenceSpaces.

OpenXR Entry Point:
xrEnumerateReferenceSpaces

References ARRAY_SIZE, OXR_TWO_CALL_HELPER, and OXR_VERIFY_SESSION_AND_INIT_LOG.

◆ oxr_xrEnumerateSwapchainFormats()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateSwapchainFormats ( XrSession  session,
uint32_t  formatCapacityInput,
uint32_t *  formatCountOutput,
int64_t *  formats 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrEnumerateSwapchainFormats.

OpenXR Entry Point:
xrEnumerateSwapchainFormats

References oxr_session_enumerate_formats(), and OXR_VERIFY_SESSION_AND_INIT_LOG.

◆ oxr_xrEnumerateSwapchainImages()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateSwapchainImages ( XrSwapchain  swapchain,
uint32_t  imageCapacityInput,
uint32_t *  imageCountOutput,
XrSwapchainImageBaseHeader *  images 
)

◆ oxr_xrEnumerateViewConfigurations()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateViewConfigurations ( XrInstance  instance,
XrSystemId  systemId,
uint32_t  viewConfigurationTypeCapacityInput,
uint32_t *  viewConfigurationTypeCountOutput,
XrViewConfigurationType *  viewConfigurationTypes 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrEnumerateViewConfigurations.

OpenXR Entry Point:
xrEnumerateViewConfigurations

References oxr_system_enumerate_view_confs(), OXR_VERIFY_INSTANCE_AND_INIT_LOG, and OXR_VERIFY_SYSTEM_AND_GET.

◆ oxr_xrEnumerateViewConfigurationViews()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateViewConfigurationViews ( XrInstance  instance,
XrSystemId  systemId,
XrViewConfigurationType  viewConfigurationType,
uint32_t  viewCapacityInput,
uint32_t *  viewCountOutput,
XrViewConfigurationView *  views 
)

◆ oxr_xrGetActionStateBoolean()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetActionStateBoolean ( XrSession  session,
const XrActionStateGetInfo *  getInfo,
XrActionStateBoolean *  data 
)

◆ oxr_xrGetActionStateFloat()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetActionStateFloat ( XrSession  session,
const XrActionStateGetInfo *  getInfo,
XrActionStateFloat *  data 
)

◆ oxr_xrGetActionStatePose()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetActionStatePose ( XrSession  session,
const XrActionStateGetInfo *  getInfo,
XrActionStatePose *  data 
)

◆ oxr_xrGetActionStateVector2f()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetActionStateVector2f ( XrSession  session,
const XrActionStateGetInfo *  getInfo,
XrActionStateVector2f *  data 
)

◆ oxr_xrGetCurrentInteractionProfile()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetCurrentInteractionProfile ( XrSession  session,
XrPath  topLevelUserPath,
XrInteractionProfileState *  interactionProfile 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrGetCurrentInteractionProfile.

OpenXR Entry Point:
xrGetCurrentInteractionProfile

References oxr_action_get_current_interaction_profile(), OXR_VERIFY_ARG_TYPE_AND_NOT_NULL, and OXR_VERIFY_SESSION_AND_INIT_LOG.

◆ oxr_xrGetInputSourceLocalizedName()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetInputSourceLocalizedName ( XrSession  session,
const XrInputSourceLocalizedNameGetInfo *  getInfo,
uint32_t  bufferCapacityInput,
uint32_t *  bufferCountOutput,
char *  buffer 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrGetInputSourceLocalizedName.

OpenXR Entry Point:
xrGetInputSourceLocalizedName
Todo:
verify getInfo

References oxr_action_get_input_source_localized_name(), and OXR_VERIFY_SESSION_AND_INIT_LOG.

◆ oxr_xrGetInstanceProcAddr()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetInstanceProcAddr ( XrInstance  instance,
const char *  name,
PFN_xrVoidFunction *  function 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrGetInstanceProcAddr.

OpenXR Entry Point:
xrGetInstanceProcAddr

References oxr_log_init().

Referenced by xrNegotiateLoaderRuntimeInterface().

◆ oxr_xrGetInstanceProperties()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetInstanceProperties ( XrInstance  instance,
XrInstanceProperties *  instanceProperties 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrGetInstanceProperties.

OpenXR Entry Point:
xrGetInstanceProperties

References oxr_instance_get_properties(), and OXR_VERIFY_INSTANCE_AND_INIT_LOG.

◆ oxr_xrGetOpenGLGraphicsRequirementsKHR()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetOpenGLGraphicsRequirementsKHR ( XrInstance  instance,
XrSystemId  systemId,
XrGraphicsRequirementsOpenGLKHR *  graphicsRequirements 
)

◆ oxr_xrGetReferenceSpaceBoundsRect()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetReferenceSpaceBoundsRect ( XrSession  session,
XrReferenceSpaceType  referenceSpaceType,
XrExtent2Df *  bounds 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrGetReferenceSpaceBoundsRect.

OpenXR Entry Point:
xrGetReferenceSpaceBoundsRect
Todo:
Implement

References oxr_error(), and OXR_VERIFY_SESSION_AND_INIT_LOG.

◆ oxr_xrGetSystem()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetSystem ( XrInstance  instance,
const XrSystemGetInfo *  getInfo,
XrSystemId *  systemId 
)

◆ oxr_xrGetSystemProperties()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetSystemProperties ( XrInstance  instance,
XrSystemId  systemId,
XrSystemProperties *  properties 
)

◆ oxr_xrGetViewConfigurationProperties()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetViewConfigurationProperties ( XrInstance  instance,
XrSystemId  systemId,
XrViewConfigurationType  viewConfigurationType,
XrViewConfigurationProperties *  configurationProperties 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrGetViewConfigurationProperties.

OpenXR Entry Point:
xrGetViewConfigurationProperties

References oxr_system_get_view_conf_properties(), OXR_VERIFY_ARG_TYPE_AND_NOT_NULL, OXR_VERIFY_INSTANCE_AND_INIT_LOG, and OXR_VERIFY_SYSTEM_AND_GET.

◆ oxr_xrGetVulkanDeviceExtensionsKHR()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetVulkanDeviceExtensionsKHR ( XrInstance  instance,
XrSystemId  systemId,
uint32_t  namesCapacityInput,
uint32_t *  namesCountOutput,
char *  namesString 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrGetVulkanDeviceExtensionsKHR.

OpenXR Entry Point:
xrGetVulkanDeviceExtensionsKHR

References OXR_VERIFY_INSTANCE_AND_INIT_LOG, OXR_VERIFY_SYSTEM_AND_GET, oxr_vk_get_device_exts(), and vkGetInstanceProcAddr().

◆ oxr_xrGetVulkanGraphicsDeviceKHR()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetVulkanGraphicsDeviceKHR ( XrInstance  instance,
XrSystemId  systemId,
VkInstance  vkInstance,
VkPhysicalDevice *  vkPhysicalDevice 
)

◆ oxr_xrGetVulkanGraphicsRequirementsKHR()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetVulkanGraphicsRequirementsKHR ( XrInstance  instance,
XrSystemId  systemId,
XrGraphicsRequirementsVulkanKHR *  graphicsRequirements 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrGetVulkanGraphicsRequirementsKHR.

OpenXR Entry Point:
xrGetVulkanGraphicsRequirementsKHR

References OXR_VERIFY_ARG_TYPE_AND_NOT_NULL, OXR_VERIFY_INSTANCE_AND_INIT_LOG, OXR_VERIFY_SYSTEM_AND_GET, and oxr_vk_get_requirements().

◆ oxr_xrGetVulkanInstanceExtensionsKHR()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetVulkanInstanceExtensionsKHR ( XrInstance  instance,
XrSystemId  systemId,
uint32_t  namesCapacityInput,
uint32_t *  namesCountOutput,
char *  namesString 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrGetVulkanInstanceExtensionsKHR.

OpenXR Entry Point:
xrGetVulkanInstanceExtensionsKHR

References OXR_VERIFY_INSTANCE_AND_INIT_LOG, OXR_VERIFY_SYSTEM_AND_GET, and oxr_vk_get_instance_exts().

◆ oxr_xrLocateSpace()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrLocateSpace ( XrSpace  space,
XrSpace  baseSpace,
XrTime  time,
XrSpaceLocation *  location 
)

◆ oxr_xrLocateViews()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrLocateViews ( XrSession  session,
const XrViewLocateInfo *  viewLocateInfo,
XrViewState *  viewState,
uint32_t  viewCapacityInput,
uint32_t *  viewCountOutput,
XrView *  views 
)

◆ oxr_xrPathToString()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrPathToString ( XrInstance  instance,
XrPath  path,
uint32_t  bufferCapacityInput,
uint32_t *  bufferCountOutput,
char *  buffer 
)

◆ oxr_xrPollEvent()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrPollEvent ( XrInstance  instance,
XrEventDataBuffer *  eventData 
)

◆ oxr_xrReleaseSwapchainImage()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrReleaseSwapchainImage ( XrSwapchain  swapchain,
const XrSwapchainImageReleaseInfo *  releaseInfo 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrReleaseSwapchainImage.

OpenXR Entry Point:
xrReleaseSwapchainImage

References OXR_VERIFY_ARG_TYPE_CAN_BE_NULL, OXR_VERIFY_SWAPCHAIN_AND_INIT_LOG, and oxr_swapchain::release_image.

◆ oxr_xrRequestExitSession()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrRequestExitSession ( XrSession  session)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrRequestExitSession.

OpenXR Entry Point:
xrRequestExitSession

References oxr_session_request_exit(), and OXR_VERIFY_SESSION_AND_INIT_LOG.

◆ oxr_xrResultToString()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrResultToString ( XrInstance  instance,
XrResult  value,
char  buffer[XR_MAX_RESULT_STRING_SIZE] 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrResultToString.

OpenXR Entry Point:
xrResultToString

References MAKE_RESULT_CASE, and OXR_VERIFY_INSTANCE_AND_INIT_LOG.

◆ oxr_xrSessionBeginDebugUtilsLabelRegionEXT()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSessionBeginDebugUtilsLabelRegionEXT ( XrSession  session,
const XrDebugUtilsLabelEXT *  labelInfo 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrSessionBeginDebugUtilsLabelRegionEXT.

OpenXR Entry Point:
xrSessionBeginDebugUtilsLabelRegionEXT

References oxr_system::inst, oxr_error(), OXR_VERIFY_EXTENSION, OXR_VERIFY_SESSION_AND_INIT_LOG, and oxr_session::sys.

◆ oxr_xrSessionEndDebugUtilsLabelRegionEXT()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSessionEndDebugUtilsLabelRegionEXT ( XrSession  session)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrSessionEndDebugUtilsLabelRegionEXT.

OpenXR Entry Point:
xrSessionEndDebugUtilsLabelRegionEXT

References oxr_system::inst, oxr_error(), OXR_VERIFY_EXTENSION, OXR_VERIFY_SESSION_AND_INIT_LOG, and oxr_session::sys.

◆ oxr_xrSessionInsertDebugUtilsLabelEXT()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSessionInsertDebugUtilsLabelEXT ( XrSession  session,
const XrDebugUtilsLabelEXT *  labelInfo 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrSessionInsertDebugUtilsLabelEXT.

OpenXR Entry Point:
xrSessionInsertDebugUtilsLabelEXT

References oxr_system::inst, oxr_error(), OXR_VERIFY_EXTENSION, OXR_VERIFY_SESSION_AND_INIT_LOG, and oxr_session::sys.

◆ oxr_xrSetDebugUtilsObjectNameEXT()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSetDebugUtilsObjectNameEXT ( XrInstance  instance,
const XrDebugUtilsObjectNameInfoEXT *  nameInfo 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrSetDebugUtilsObjectNameEXT.

OpenXR Entry Point:
xrSetDebugUtilsObjectNameEXT

References oxr_error(), OXR_VERIFY_EXTENSION, and OXR_VERIFY_INSTANCE_AND_INIT_LOG.

◆ oxr_xrStopHapticFeedback()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrStopHapticFeedback ( XrSession  session,
const XrHapticActionInfo *  hapticActionInfo 
)

◆ oxr_xrStringToPath()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrStringToPath ( XrInstance  instance,
const char *  pathString,
XrPath *  path 
)

◆ oxr_xrStructureTypeToString()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrStructureTypeToString ( XrInstance  instance,
XrStructureType  value,
char  buffer[XR_MAX_STRUCTURE_NAME_SIZE] 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrStructureTypeToString.

OpenXR Entry Point:
xrStructureTypeToString

References MAKE_TYPE_CASE, and OXR_VERIFY_INSTANCE_AND_INIT_LOG.

◆ oxr_xrSubmitDebugUtilsMessageEXT()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSubmitDebugUtilsMessageEXT ( XrInstance  instance,
XrDebugUtilsMessageSeverityFlagsEXT  messageSeverity,
XrDebugUtilsMessageTypeFlagsEXT  messageTypes,
const XrDebugUtilsMessengerCallbackDataEXT *  callbackData 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrSubmitDebugUtilsMessageEXT.

OpenXR Entry Point:
xrSubmitDebugUtilsMessageEXT

References OXR_VERIFY_EXTENSION, OXR_VERIFY_INSTANCE_AND_INIT_LOG, and oxr_warn().

◆ oxr_xrSuggestInteractionProfileBindings()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSuggestInteractionProfileBindings ( XrInstance  instance,
const XrInteractionProfileSuggestedBinding *  suggestedBindings 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrSuggestInteractionProfileBindings.

OpenXR Entry Point:
xrSuggestInteractionProfileBindings
Todo:
verify path (s->binding).

References oxr_action_suggest_interaction_profile_bindings(), OXR_VERIFY_ACTION_NOT_NULL, OXR_VERIFY_ARG_TYPE_AND_NOT_NULL, and OXR_VERIFY_INSTANCE_AND_INIT_LOG.

◆ oxr_xrSyncActions()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSyncActions ( XrSession  session,
const XrActionsSyncInfo *  syncInfo 
)

◆ oxr_xrWaitFrame()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrWaitFrame ( XrSession  session,
const XrFrameWaitInfo *  frameWaitInfo,
XrFrameState *  frameState 
)

◆ oxr_xrWaitSwapchainImage()

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrWaitSwapchainImage ( XrSwapchain  swapchain,
const XrSwapchainImageWaitInfo *  waitInfo 
)

#include <state_trackers/oxr/oxr_api_funcs.h>

OpenXR API function xrWaitSwapchainImage.

OpenXR Entry Point:
xrWaitSwapchainImage

References OXR_VERIFY_ARG_TYPE_AND_NOT_NULL, OXR_VERIFY_SWAPCHAIN_AND_INIT_LOG, and oxr_swapchain::wait_image.