32#define OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, oxr_thing, THING, name, lookup) \
34 oxr_log_init(log, name); \
35 if (thing == XR_NULL_HANDLE) { \
36 return oxr_error(log, XR_ERROR_HANDLE_INVALID, "(" #thing " == NULL)"); \
38 new_thing = (struct oxr_thing *)((uintptr_t)thing); \
39 if (new_thing->handle.debug != OXR_XR_DEBUG_##THING) { \
40 return oxr_error(log, XR_ERROR_HANDLE_INVALID, "(" #thing " == %p)", (void *)new_thing); \
42 if (new_thing->handle.state != OXR_HANDLE_STATE_LIVE) { \
43 return oxr_error(log, XR_ERROR_HANDLE_INVALID, "(" #thing " == %p) state == %s", \
44 (void *)new_thing, oxr_handle_state_to_string(new_thing->handle.state)); \
46 oxr_log_set_instance(log, lookup); \
49#define OXR_VERIFY_PARENT_AND_SET_AND_INIT(log, thing, new_thing, oxr_thing, THING, name, lookup) \
51 oxr_log_init(log, name); \
52 if (thing == XR_NULL_HANDLE) { \
53 return oxr_error(log, XR_ERROR_HANDLE_INVALID, "(" #thing " == NULL)"); \
55 new_thing = (struct oxr_thing *)((uintptr_t)thing); \
56 if (new_thing->handle.base.debug != OXR_XR_DEBUG_##THING) { \
57 return oxr_error(log, XR_ERROR_HANDLE_INVALID, "(" #thing " == %p)", (void *)new_thing); \
59 if (new_thing->handle.base.state != OXR_HANDLE_STATE_LIVE) { \
60 return oxr_error(log, XR_ERROR_HANDLE_INVALID, "(" #thing " == %p) state == %s", \
61 (void *)new_thing, oxr_handle_state_to_string(new_thing->handle.base.state)); \
63 oxr_log_set_instance(log, lookup); \
66#define OXR_VERIFY_SET(log, arg, new_arg, oxr_thing, THING) \
68 if (arg == XR_NULL_HANDLE) { \
69 return oxr_error(log, XR_ERROR_HANDLE_INVALID, "(" #arg " == NULL)"); \
71 new_arg = (struct oxr_thing *)((uintptr_t)arg); \
72 if (new_arg->handle.debug != OXR_XR_DEBUG_##THING) { \
73 return oxr_error(log, XR_ERROR_HANDLE_INVALID, "(" #arg " == %p)", (void *)new_arg); \
77#define OXR_VERIFY_PARENT_SET(log, arg, new_arg, oxr_thing, THING) \
79 if (arg == XR_NULL_HANDLE) { \
80 return oxr_error(log, XR_ERROR_HANDLE_INVALID, "(" #arg " == NULL)"); \
82 new_arg = (struct oxr_thing *)((uintptr_t)arg); \
83 if (new_arg->handle.base.debug != OXR_XR_DEBUG_##THING) { \
84 return oxr_error(log, XR_ERROR_HANDLE_INVALID, "(" #arg " == %p)", (void *)new_arg); \
95#define OXR_VERIFY_INSTANCE_AND_INIT_LOG(log, thing, new_thing, name) \
96 OXR_VERIFY_PARENT_AND_SET_AND_INIT(log, thing, new_thing, oxr_instance, INSTANCE, name, new_thing)
97#define OXR_VERIFY_MESSENGER_AND_INIT_LOG(log, thing, new_thing, name) \
98 OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, oxr_messenger, MESSENGER, name, new_thing->inst)
99#define OXR_VERIFY_SESSION_AND_INIT_LOG(log, thing, new_thing, name) \
100 OXR_VERIFY_PARENT_AND_SET_AND_INIT(log, thing, new_thing, oxr_session, SESSION, name, new_thing->sys->inst)
101#define OXR_VERIFY_SPACE_AND_INIT_LOG(log, thing, new_thing, name) \
102 OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, oxr_space, SPACE, name, new_thing->sess->sys->inst)
103#define OXR_VERIFY_ACTION_AND_INIT_LOG(log, thing, new_thing, name) \
104 OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, oxr_action, ACTION, name, new_thing->act_set->inst)
105#define OXR_VERIFY_SWAPCHAIN_AND_INIT_LOG(log, thing, new_thing, name) \
106 OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, oxr_swapchain, SWAPCHAIN, name, new_thing->sess->sys->inst)
107#define OXR_VERIFY_ACTIONSET_AND_INIT_LOG(log, thing, new_thing, name) \
108 OXR_VERIFY_PARENT_AND_SET_AND_INIT(log, thing, new_thing, oxr_action_set, ACTIONSET, name, new_thing->inst)
109#define OXR_VERIFY_HAND_TRACKER_AND_INIT_LOG(log, thing, new_thing, name) \
110 OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, oxr_hand_tracker, HTRACKER, name, new_thing->sess->sys->inst)
111#define OXR_VERIFY_FORCE_FEEDBACK_AND_INIT_LOG(log, thing, new_thing, name) \
112 OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, oxr_force_feedback, FFB, name, new_thing->sess->sys->inst)
113#define OXR_VERIFY_PASSTHROUGH_AND_INIT_LOG(log, thing, new_thing, name) \
114 OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, oxr_passthrough, PASSTHROUGH, name, new_thing->sess->sys->inst)
115#define OXR_VERIFY_PASSTHROUGH_LAYER_AND_INIT_LOG(log, thing, new_thing, name) \
116 OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, oxr_passthrough_layer, PASSTHROUGH_LAYER, name, new_thing->sess->sys->inst)
117#define OXR_VERIFY_FACE_TRACKER_HTC_AND_INIT_LOG(log, thing, new_thing, name) \
118 OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, oxr_facial_tracker_htc, FTRACKER, name, new_thing->sess->sys->inst)
119#define OXR_VERIFY_FACE_TRACKER2_FB_AND_INIT_LOG(log, thing, new_thing, name) \
120 OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, oxr_face_tracker2_fb, FTRACKER, name, new_thing->sess->sys->inst)
121#define OXR_VERIFY_BODY_TRACKER_FB_AND_INIT_LOG(log, thing, new_thing, name) \
122 OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, oxr_body_tracker_fb, BTRACKER, name, new_thing->sess->sys->inst)
123#define OXR_VERIFY_BODY_TRACKER_BD_AND_INIT_LOG(log, thing, new_thing, name) \
124 OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, oxr_body_tracker_bd, BTRACKER_BD, name, new_thing->sess->sys->inst)
125#define OXR_VERIFY_XDEVLIST_AND_INIT_LOG(log, thing, new_thing, name) \
126 OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, oxr_xdev_list, XDEVLIST, name, new_thing->sess->sys->inst)
127#define OXR_VERIFY_PLANE_DETECTOR_AND_INIT_LOG(log, thing, new_thing, name) \
128 OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, oxr_plane_detector_ext, PLANEDET, name, new_thing->sess->sys->inst)
129#define OXR_VERIFY_FUTURE_AND_INIT_LOG(log, thing, new_thing, name) \
130 OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, oxr_future_ext, FUTURE, name, new_thing->inst); \
131 OXR_VERIFY_FUTURE_VALID(log, new_thing)
132#define OXR_VERIFY_FACE_TRACKER_ANDROID_AND_INIT_LOG(log, thing, new_thing, name) \
133 OXR_VERIFY_AND_SET_AND_INIT(log, thing, new_thing, oxr_face_tracker_android, FTRACKER, name, new_thing->sess->sys->inst)
136#define OXR_VERIFY_INSTANCE_NOT_NULL(log, arg, new_arg) \
137 OXR_VERIFY_PARENT_SET(log, arg, new_arg, oxr_instance, INSTANCE);
138#define OXR_VERIFY_MESSENGER_NOT_NULL(log, arg, new_arg) OXR_VERIFY_SET(log, arg, new_arg, oxr_messenger, MESSENGER);
139#define OXR_VERIFY_SESSION_NOT_NULL(log, arg, new_arg) OXR_VERIFY_PARENT_SET(log, arg, new_arg, oxr_session, SESSION);
140#define OXR_VERIFY_SPACE_NOT_NULL(log, arg, new_arg) OXR_VERIFY_SET(log, arg, new_arg, oxr_space, SPACE);
141#define OXR_VERIFY_ACTION_NOT_NULL(log, arg, new_arg) OXR_VERIFY_SET(log, arg, new_arg, oxr_action, ACTION);
142#define OXR_VERIFY_SWAPCHAIN_NOT_NULL(log, arg, new_arg) OXR_VERIFY_SET(log, arg, new_arg, oxr_swapchain, SWAPCHAIN);
143#define OXR_VERIFY_ACTIONSET_NOT_NULL(log, arg, new_arg) \
144 OXR_VERIFY_PARENT_SET(log, arg, new_arg, oxr_action_set, ACTIONSET);
145#define OXR_VERIFY_XDEVLIST_NOT_NULL(log, arg, new_arg) OXR_VERIFY_SET(log, arg, new_arg, oxr_xdev_list, XDEVLIST);
147#define OXR_VERIFY_FUTURE_NOT_NULL(log, arg, new_arg) OXR_VERIFY_SET(log, arg, new_arg, oxr_future_ext, FUTURE);
153#define OXR_VERIFY_EXTENSION(log, inst, mixed_case_name) \
155 if (!(inst)->extensions.mixed_case_name) { \
156 return oxr_error((log), XR_ERROR_FUNCTION_UNSUPPORTED, \
157 "Requires XR_" #mixed_case_name " extension enabled"); \
166#define OXR_VERIFY_EXTENSIONS_OR(log, inst, mixed_case_name1, mixed_case_name2) \
168 if (!(inst)->extensions.mixed_case_name1 && !(inst)->extensions.mixed_case_name2) { \
169 return oxr_error((log), XR_ERROR_FUNCTION_UNSUPPORTED, \
170 "Requires XR_" #mixed_case_name1 "or XR_" #mixed_case_name2 \
171 " extension enabled"); \
178#define OXR_API_VERSION_AT_LEAST(inst, major, minor) \
179 ((inst)->openxr_version.major_minor >= XR_MAKE_VERSION(major, minor, 0))
184#define OXR_VERIFY_API_VERSION_AT_LEAST(log, inst, major, minor) \
186 if (!OXR_VERSION_AT_LEAST(inst, major, minor)) { \
187 return oxr_error((log), XR_ERROR_FUNCTION_UNSUPPORTED, "Requires OpenXR version %d.%d.x", \
192#define OXR_VERIFY_ARG_NOT_NULL(log, arg) \
195 return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, "(" #arg " == NULL)"); \
199#define OXR_VERIFY_ARG_NOT_ZERO(log, arg) \
202 return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, "(" #arg " == 0) must be non-zero"); \
206#define OXR_VERIFY_ARG_ZERO(log, arg) \
209 return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, "(" #arg " == 0) must be zero"); \
213#define OXR_VERIFY_ARG_TYPE_CAN_BE_NULL(log, arg, type_enum) \
215 if (arg != NULL && arg->type != type_enum) { \
216 return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, "(" #arg "->type == %u)", arg->type); \
220#define OXR_VERIFY_ARG_TYPE_AND_NOT_NULL(log, arg, type_enum) \
223 return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, "(" #arg " == NULL)"); \
225 OXR_VERIFY_ARG_TYPE_CAN_BE_NULL(log, arg, type_enum); \
232#define OXR_VERIFY_ARG_ARRAY_ELEMENT_TYPE(log, array, index, type_enum) \
234 if ((array)[index].type != type_enum) { \
235 return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
236 "(" #array "[%u]->type == 0x%08x) expected 0x%08x", index, \
237 (array)[index].type, type_enum); \
241#define OXR_VERIFY_TWO_CALL_ARRAY(log, inputCapacity, countOutput, array) \
243 OXR_VERIFY_ARG_NOT_NULL(log, countOutput); \
244 if (inputCapacity > 0) { \
245 OXR_VERIFY_ARG_NOT_NULL(log, array); \
249#define OXR_VERIFY_TWO_CALL_ARRAY_AND_TYPE(log, inputCapacity, countOutput, array, type_enum) \
251 OXR_VERIFY_ARG_NOT_NULL(log, countOutput); \
252 if (inputCapacity > 0) { \
253 OXR_VERIFY_ARG_NOT_NULL(log, array); \
254 for (uint32_t i = 0; i < inputCapacity; ++i) { \
255 OXR_VERIFY_ARG_ARRAY_ELEMENT_TYPE(log, array, i, type_enum); \
260#define OXR_VERIFY_SUBACTION_PATHS(log, count, paths) \
262 if (count > 0 && paths == NULL) { \
263 return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
264 "(" #count ") is not zero but " #paths " is NULL"); \
268#define OXR_VERIFY_ARG_SINGLE_LEVEL_FIXED_LENGTH_PATH(log, path) \
270 XrResult verify_ret = oxr_verify_fixed_size_single_level_path(log, path, ARRAY_SIZE(path), #path); \
271 if (verify_ret != XR_SUCCESS) { \
276#define OXR_VERIFY_ARG_LOCALIZED_NAME(log, string) \
278 XrResult verify_ret = oxr_verify_localized_name(log, string, ARRAY_SIZE(string), #string); \
279 if (verify_ret != XR_SUCCESS) { \
284#define OXR_VERIFY_POSE(log, p) \
286 if (!math_quat_validate((struct xrt_quat *)&p.orientation)) { \
287 return oxr_error(log, XR_ERROR_POSE_INVALID, "(" #p ".orientation) is not a valid quat"); \
290 if (!math_vec3_validate((struct xrt_vec3 *)&p.position)) { \
291 return oxr_error(log, XR_ERROR_POSE_INVALID, "(" #p ".position) is not valid"); \
295#define OXR_VERIFY_FORM_FACTOR(log, form_factor) \
297 XrFormFactor _form_factor = (form_factor); \
298 if (_form_factor != XR_FORM_FACTOR_HEAD_MOUNTED_DISPLAY && \
299 _form_factor != XR_FORM_FACTOR_HANDHELD_DISPLAY) { \
301 return oxr_error(log, XR_ERROR_FORM_FACTOR_UNSUPPORTED, \
302 "(" #form_factor " == 0x%08x) is not a valid form factor", _form_factor); \
306#define OXR_VERIFY_VIEW_CONFIG_TYPE(log, inst, view_conf) \
308 XrResult verify_ret = oxr_verify_view_config_type(log, inst, view_conf, #view_conf); \
309 if (verify_ret != XR_SUCCESS) { \
314#define OXR_VERIFY_VIEW_CONFIG_TYPE_SUPPORTED(log, sys, view_conf) \
316 XrResult verify_ret = oxr_verify_view_config_type_supported(log, sys, view_conf, #view_conf); \
317 if (verify_ret != XR_SUCCESS) { \
322#define OXR_VERIFY_VIEW_INDEX(log, index) \
324 if (index >= XRT_MAX_COMPOSITOR_VIEW_CONFIGS_VIEW_COUNT) { \
325 return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
326 "Invalid view index %d, only %d views supported", index, \
327 XRT_MAX_COMPOSITOR_VIEW_CONFIGS_VIEW_COUNT); \
331#define OXR_VERIFY_SWAPCHAIN_USAGE_FLAGS_NOT_MUTUALLY_EXCLUSIVE(log, flags, mutually_exclusive_a, \
332 mutually_exclusive_b) \
334 if (((flags) & (mutually_exclusive_a)) != 0 && ((flags) & (mutually_exclusive_b)) != 0) { \
335 return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
336 "(" #flags ") Swapchain usage flags " #mutually_exclusive_a \
337 " and " #mutually_exclusive_b \
338 " are mutually exclusive in this graphics API"); \
342#define OXR_VERIFY_SESSION_NOT_LOST(log, sess) \
344 if (sess->has_lost) { \
345 return oxr_error(log, XR_ERROR_SESSION_LOST, "Session is lost"); \
349#define OXR_VERIFY_SESSION_RUNNING(log, sess) \
351 if (!oxr_frame_sync_is_session_running(&sess->frame_sync)) { \
352 return oxr_error(log, XR_ERROR_SESSION_NOT_RUNNING, "Session is not running"); \
356#define OXR_VERIFY_PASSTHROUGH_FLAGS(log, flags) \
358 (flags & (XR_PASSTHROUGH_IS_RUNNING_AT_CREATION_BIT_FB | XR_PASSTHROUGH_LAYER_DEPTH_BIT_FB)) == 0) \
359 return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
360 "flags is not a valid combination of XrPassthroughFlagBitsFB values");
362#define OXR_VERIFY_PASSTHROUGH_LAYER_PURPOSE(log, purpose) \
363 if ((purpose != XR_PASSTHROUGH_LAYER_PURPOSE_RECONSTRUCTION_FB && \
364 purpose != XR_PASSTHROUGH_LAYER_PURPOSE_PROJECTED_FB && \
365 purpose != XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_HANDS_FB && \
366 purpose != XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_MASKED_HANDS_FB)) \
367 return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
368 "purpose is not a valid XrPassthroughLayerPurposeFB value");
370#define OXR_VERIFY_PASSTHROUGH_LAYER_STYLE(log, style) \
372 uint32_t duplicate_check = 0; \
373 const XrPassthroughStyleFB *next = style->next; \
375 if (next->type != XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB && \
376 next->type != XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB && \
377 next->type != XR_TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB) \
378 return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
379 "style next structure chain contains invalid pointers"); \
380 if ((next->type & duplicate_check) != 0) \
381 return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
382 "style next structure chain contains duplicate items"); \
383 duplicate_check |= next->type; \
384 next = (const XrPassthroughStyleFB *)next->next; \
388#define OXR_VERIFY_HAND_TRACKING_DATA_SOURCE_OR_NULL(log, data_source_info) \
390 if (data_source_info != NULL) { \
391 XrResult verify_ret = oxr_verify_XrHandTrackingDataSourceInfoEXT(log, data_source_info); \
392 if (verify_ret != XR_SUCCESS) { \
398#define OXR_VERIFY_FUTURE_VALID(LOG, OXR_FT) \
400 if (OXR_FT->xft == NULL) { \
401 return oxr_error(LOG, XR_ERROR_FUTURE_INVALID_EXT, "future is not valid"); \
405#define OXR_VERIFY_ARG_TIME_NOT_ZERO(log, xr_time) \
407 if (xr_time <= (XrTime)0) { \
408 return oxr_error(log, XR_ERROR_TIME_INVALID, "(time == %" PRIi64 ") is not a valid time.", \
421oxr_verify_full_path_c(
struct oxr_logger *log,
const char *path,
const char *name);
452 uint32_t countSubactionPaths,
453 const XrPath *subactionPaths,
454 const char *variable);
475 const char *variable);
488 uint32_t countActionSets,
489 const XrActionSet *actionSets,
490 const char *variable_name);
505 uint32_t countActiveActionSets,
506 const XrActiveActionSet *activeActionSets,
507 const char *variable_name);
513oxr_verify_view_config_type(
struct oxr_logger *log,
515 XrViewConfigurationType view_conf,
516 const char *view_conf_name);
519oxr_verify_view_config_type_supported(
struct oxr_logger *log,
521 XrViewConfigurationType view_conf,
522 const char *view_conf_name);
525oxr_verify_XrSessionCreateInfo(
struct oxr_logger * ,
527 const XrSessionCreateInfo * );
529#if defined(XR_USE_PLATFORM_XLIB) && defined(XR_USE_GRAPHICS_API_OPENGL)
531oxr_verify_XrGraphicsBindingOpenGLXlibKHR(
struct oxr_logger * ,
const XrGraphicsBindingOpenGLXlibKHR * );
534#if defined(XR_USE_PLATFORM_WIN32) && defined(XR_USE_GRAPHICS_API_OPENGL)
536oxr_verify_XrGraphicsBindingOpenGLWin32KHR(
struct oxr_logger * ,
537 const XrGraphicsBindingOpenGLWin32KHR * );
540#if defined(XR_USE_GRAPHICS_API_VULKAN)
542oxr_verify_XrGraphicsBindingVulkanKHR(
struct oxr_logger * ,
const XrGraphicsBindingVulkanKHR * );
545#if defined(XR_USE_PLATFORM_EGL)
547oxr_verify_XrGraphicsBindingEGLMNDX(
struct oxr_logger *log,
const XrGraphicsBindingEGLMNDX *next);
550#if defined(XR_USE_PLATFORM_ANDROID) && defined(XR_USE_GRAPHICS_API_OPENGL_ES)
552oxr_verify_XrGraphicsBindingOpenGLESAndroidKHR(
struct oxr_logger *,
const XrGraphicsBindingOpenGLESAndroidKHR *);
556#if defined(XR_USE_GRAPHICS_API_D3D11)
558oxr_verify_XrGraphicsBindingD3D11KHR(
struct oxr_logger *,
const XrGraphicsBindingD3D11KHR *);
561#if defined(XR_USE_GRAPHICS_API_D3D12)
563oxr_verify_XrGraphicsBindingD3D12KHR(
struct oxr_logger *,
const XrGraphicsBindingD3D12KHR *);
566#ifdef XR_EXT_dpad_binding
568oxr_verify_XrInteractionProfileDpadBindingEXT(
struct oxr_logger *,
569 const XrInteractionProfileDpadBindingEXT *,
570 const char *error_prefix);
573#ifdef OXR_HAVE_EXT_hand_tracking_data_source
575oxr_verify_XrHandTrackingDataSourceInfoEXT(
struct oxr_logger *,
const XrHandTrackingDataSourceInfoEXT *);
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.
Definition oxr_verify.c:302
XrResult oxr_verify_subaction_path_sync(struct oxr_logger *log, const struct oxr_instance *inst, const struct oxr_action_set *act_set, XrPath path, uint32_t index)
Verify a set of subaction paths for action sync.
Definition oxr_verify.c:323
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:67
XrResult oxr_verify_active_action_sets_sync(struct oxr_logger *log, const struct oxr_instance *inst, uint32_t countActiveActionSets, const XrActiveActionSet *activeActionSets, const char *variable_name)
Verify an array of active action sets for xrSyncActions: each action set handle is valid and each sub...
Definition oxr_verify.c:469
XrResult oxr_verify_subaction_path_get(struct oxr_logger *log, struct oxr_instance *inst, XrPath path, const struct oxr_subaction_paths *act_subaction_paths, struct oxr_subaction_paths *out_subaction_paths, const char *variable)
Verify a set of subaction paths for action state get.
Definition oxr_verify.c:353
XrResult oxr_verify_action_sets_array(struct oxr_logger *log, uint32_t countActionSets, const XrActionSet *actionSets, const char *variable_name)
Verify an array of action sets, the array must have at least one element.
Definition oxr_verify.c:441
XrResult oxr_verify_full_path(struct oxr_logger *log, const char *path, size_t length, const char *name)
Verify a full path.
Definition oxr_verify.c:142
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:98
The objects that handle session running status and blocking of xrWaitFrame.
A group of actions.
Definition oxr_objects.h:1900
Structure tracking which extensions are enabled for a given instance.
Definition oxr_objects.h:1157
Main object that ties everything together.
Definition oxr_objects.h:1173
Logger struct that lives on the stack, one for each call client call.
Definition oxr_logger.h:44
A parsed equivalent of a list of sub-action paths.
Definition oxr_subaction.h:99
Single or multiple devices grouped together to form a system that sessions can be created from.
Definition oxr_objects.h:1083
Header for limits of the XRT interfaces.