Monado OpenXR Runtime
oxr_defines.h File Reference

Shared internal defines and enums in the state tracker. More...

#include "xrt/xrt_compiler.h"
Include dependency graph for oxr_defines.h:

Go to the source code of this file.

Macros

#define OXR_XR_DEBUG_INSTANCE   (*(uint64_t *)"oxrinst\0")
 
#define OXR_XR_DEBUG_SESSION   (*(uint64_t *)"oxrsess\0")
 
#define OXR_XR_DEBUG_SPACE   (*(uint64_t *)"oxrspac\0")
 
#define OXR_XR_DEBUG_PATH   (*(uint64_t *)"oxrpath\0")
 
#define OXR_XR_DEBUG_ACTION   (*(uint64_t *)"oxracti\0")
 
#define OXR_XR_DEBUG_SWAPCHAIN   (*(uint64_t *)"oxrswap\0")
 
#define OXR_XR_DEBUG_ACTIONSET   (*(uint64_t *)"oxraset\0")
 
#define OXR_XR_DEBUG_MESSENGER   (*(uint64_t *)"oxrmess\0")
 
#define OXR_XR_DEBUG_SOURCESET   (*(uint64_t *)"oxrsrcs\0")
 
#define OXR_XR_DEBUG_SOURCE   (*(uint64_t *)"oxrsrc_\0")
 
#define OXR_XR_DEBUG_HTRACKER   (*(uint64_t *)"oxrhtra\0")
 
#define OXR_XR_DEBUG_PASSTHROUGH   (*(uint64_t *)"oxrpass\0")
 
#define OXR_XR_DEBUG_PASSTHROUGH_LAYER   (*(uint64_t *)"oxrptla\0")
 
#define OXR_XR_DEBUG_FTRACKER   (*(uint64_t *)"oxrftra\0")
 
#define OXR_XR_DEBUG_BTRACKER   (*(uint64_t *)"oxrbtra\0")
 
#define OXR_XR_DEBUG_XDEVLIST   (*(uint64_t *)"oxrxdli\0")
 

Enumerations

enum  oxr_handle_state { OXR_HANDLE_STATE_UNINITIALIZED = 0 , OXR_HANDLE_STATE_LIVE , OXR_HANDLE_STATE_DESTROYED }
 State of a handle base, to reduce likelihood of going "boom" on out-of-order destruction or other unsavory behavior. More...
 
enum  oxr_subaction_path {
  OXR_SUB_ACTION_PATH_USER , OXR_SUB_ACTION_PATH_HEAD , OXR_SUB_ACTION_PATH_LEFT , OXR_SUB_ACTION_PATH_RIGHT ,
  OXR_SUB_ACTION_PATH_GAMEPAD , OXR_SUB_ACTION_PATH_EYES
}
 Sub action paths. More...
 
enum  oxr_dpad_region {
  OXR_DPAD_REGION_CENTER = 0u , OXR_DPAD_REGION_UP = (1u << 0u) , OXR_DPAD_REGION_DOWN = (1u << 1u) , OXR_DPAD_REGION_LEFT = (1u << 2u) ,
  OXR_DPAD_REGION_RIGHT = (1u << 3u)
}
 Region of a dpad binding that an input is mapped to. More...
 
enum  oxr_image_state { OXR_IMAGE_STATE_READY , OXR_IMAGE_STATE_ACQUIRED , OXR_IMAGE_STATE_WAITED }
 Tracks the state of a image that belongs to a oxr_swapchain. More...
 
enum  oxr_space_type {
  OXR_SPACE_TYPE_REFERENCE_VIEW , OXR_SPACE_TYPE_REFERENCE_LOCAL , OXR_SPACE_TYPE_REFERENCE_LOCAL_FLOOR , OXR_SPACE_TYPE_REFERENCE_STAGE ,
  OXR_SPACE_TYPE_REFERENCE_UNBOUNDED_MSFT , OXR_SPACE_TYPE_REFERENCE_COMBINED_EYE_VARJO , OXR_SPACE_TYPE_REFERENCE_LOCALIZATION_MAP_ML , OXR_SPACE_TYPE_ACTION ,
  OXR_SPACE_TYPE_XDEV_POSE
}
 Internal enum for the type of space, lets us reason about action spaces. More...
 
enum  oxr_session_graphics_ext {
  OXR_SESSION_GRAPHICS_EXT_HEADLESS , OXR_SESSION_GRAPHICS_EXT_VULKAN , OXR_SESSION_GRAPHICS_EXT_D3D11 , OXR_SESSION_GRAPHICS_EXT_D3D12 ,
  OXR_SESSION_GRAPHICS_EXT_WIN32_GL , OXR_SESSION_GRAPHICS_EXT_XLIB_GL , OXR_SESSION_GRAPHICS_EXT_ANDROID_GLES , OXR_SESSION_GRAPHICS_EXT_EGL
}
 What graphics API was this session created with. More...
 

Detailed Description

Shared internal defines and enums in the state tracker.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m
Korcan Hussein korca.nosp@m.n.hu.nosp@m.ssein.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m