C Specification

// Provided by XR_VERSION_1_0
typedef enum XrObjectType {
    XR_OBJECT_TYPE_UNKNOWN = 0,
    XR_OBJECT_TYPE_INSTANCE = 1,
    XR_OBJECT_TYPE_SESSION = 2,
    XR_OBJECT_TYPE_SWAPCHAIN = 3,
    XR_OBJECT_TYPE_SPACE = 4,
    XR_OBJECT_TYPE_ACTION_SET = 5,
    XR_OBJECT_TYPE_ACTION = 6,
  // Provided by XR_EXT_debug_utils
    XR_OBJECT_TYPE_DEBUG_UTILS_MESSENGER_EXT = 1000019000,
  // Provided by XR_MSFT_spatial_anchor
    XR_OBJECT_TYPE_SPATIAL_ANCHOR_MSFT = 1000039000,
  // Provided by XR_MSFT_spatial_graph_bridge
    XR_OBJECT_TYPE_SPATIAL_GRAPH_NODE_BINDING_MSFT = 1000049000,
  // Provided by XR_EXT_hand_tracking
    XR_OBJECT_TYPE_HAND_TRACKER_EXT = 1000051000,
  // Provided by XR_FB_body_tracking
    XR_OBJECT_TYPE_BODY_TRACKER_FB = 1000076000,
  // Provided by XR_MSFT_scene_understanding
    XR_OBJECT_TYPE_SCENE_OBSERVER_MSFT = 1000097000,
  // Provided by XR_MSFT_scene_understanding
    XR_OBJECT_TYPE_SCENE_MSFT = 1000097001,
  // Provided by XR_HTC_facial_tracking
    XR_OBJECT_TYPE_FACIAL_TRACKER_HTC = 1000104000,
  // Provided by XR_FB_foveation
    XR_OBJECT_TYPE_FOVEATION_PROFILE_FB = 1000114000,
  // Provided by XR_FB_triangle_mesh
    XR_OBJECT_TYPE_TRIANGLE_MESH_FB = 1000117000,
  // Provided by XR_FB_passthrough
    XR_OBJECT_TYPE_PASSTHROUGH_FB = 1000118000,
  // Provided by XR_FB_passthrough
    XR_OBJECT_TYPE_PASSTHROUGH_LAYER_FB = 1000118002,
  // Provided by XR_FB_passthrough
    XR_OBJECT_TYPE_GEOMETRY_INSTANCE_FB = 1000118004,
  // Provided by XR_ML_marker_understanding
    XR_OBJECT_TYPE_MARKER_DETECTOR_ML = 1000138000,
  // Provided by XR_ML_localization_map
    XR_OBJECT_TYPE_EXPORTED_LOCALIZATION_MAP_ML = 1000139000,
  // Provided by XR_ML_spatial_anchors_storage
    XR_OBJECT_TYPE_SPATIAL_ANCHORS_STORAGE_ML = 1000141000,
  // Provided by XR_MSFT_spatial_anchor_persistence
    XR_OBJECT_TYPE_SPATIAL_ANCHOR_STORE_CONNECTION_MSFT = 1000142000,
  // Provided by XR_FB_face_tracking
    XR_OBJECT_TYPE_FACE_TRACKER_FB = 1000201000,
  // Provided by XR_FB_eye_tracking_social
    XR_OBJECT_TYPE_EYE_TRACKER_FB = 1000202000,
  // Provided by XR_META_virtual_keyboard
    XR_OBJECT_TYPE_VIRTUAL_KEYBOARD_META = 1000219000,
  // Provided by XR_FB_spatial_entity_user
    XR_OBJECT_TYPE_SPACE_USER_FB = 1000241000,
  // Provided by XR_META_passthrough_color_lut
    XR_OBJECT_TYPE_PASSTHROUGH_COLOR_LUT_META = 1000266000,
  // Provided by XR_FB_face_tracking2
    XR_OBJECT_TYPE_FACE_TRACKER2_FB = 1000287012,
  // Provided by XR_META_environment_depth
    XR_OBJECT_TYPE_ENVIRONMENT_DEPTH_PROVIDER_META = 1000291000,
  // Provided by XR_META_environment_depth
    XR_OBJECT_TYPE_ENVIRONMENT_DEPTH_SWAPCHAIN_META = 1000291001,
  // Provided by XR_EXT_render_model
    XR_OBJECT_TYPE_RENDER_MODEL_EXT = 1000300000,
  // Provided by XR_EXT_render_model
    XR_OBJECT_TYPE_RENDER_MODEL_ASSET_EXT = 1000300001,
  // Provided by XR_HTC_passthrough
    XR_OBJECT_TYPE_PASSTHROUGH_HTC = 1000317000,
  // Provided by XR_HTC_body_tracking
    XR_OBJECT_TYPE_BODY_TRACKER_HTC = 1000320000,
  // Provided by XR_BD_body_tracking
    XR_OBJECT_TYPE_BODY_TRACKER_BD = 1000385000,
  // Provided by XR_BD_facial_simulation
    XR_OBJECT_TYPE_FACE_TRACKER_BD = 1000386000,
  // Provided by XR_BD_spatial_sensing
    XR_OBJECT_TYPE_SENSE_DATA_PROVIDER_BD = 1000389000,
  // Provided by XR_BD_spatial_sensing
    XR_OBJECT_TYPE_SENSE_DATA_SNAPSHOT_BD = 1000389001,
  // Provided by XR_BD_spatial_sensing
    XR_OBJECT_TYPE_ANCHOR_BD = 1000389002,
  // Provided by XR_EXT_plane_detection
    XR_OBJECT_TYPE_PLANE_DETECTOR_EXT = 1000429000,
  // Provided by XR_ANDROID_trackables
    XR_OBJECT_TYPE_TRACKABLE_TRACKER_ANDROID = 1000455001,
  // Provided by XR_ANDROID_device_anchor_persistence
    XR_OBJECT_TYPE_DEVICE_ANCHOR_PERSISTENCE_ANDROID = 1000457000,
  // Provided by XR_ANDROID_face_tracking
    XR_OBJECT_TYPE_FACE_TRACKER_ANDROID = 1000458000,
  // Provided by XR_ML_world_mesh_detection
    XR_OBJECT_TYPE_WORLD_MESH_DETECTOR_ML = 1000474000,
  // Provided by XR_ML_facial_expression
    XR_OBJECT_TYPE_FACIAL_EXPRESSION_CLIENT_ML = 1000482000,
  // Provided by XR_EXT_spatial_entity
    XR_OBJECT_TYPE_SPATIAL_ENTITY_EXT = 1000740000,
  // Provided by XR_EXT_spatial_entity
    XR_OBJECT_TYPE_SPATIAL_CONTEXT_EXT = 1000740001,
  // Provided by XR_EXT_spatial_entity
    XR_OBJECT_TYPE_SPATIAL_SNAPSHOT_EXT = 1000740002,
  // Provided by XR_EXT_spatial_persistence
    XR_OBJECT_TYPE_SPATIAL_PERSISTENCE_CONTEXT_EXT = 1000763000,
    XR_OBJECT_TYPE_MAX_ENUM = 0x7FFFFFFF
} XrObjectType;

Description

The XrObjectType enumeration defines values, each of which corresponds to a specific OpenXR handle type. These values can be used to associate debug information with a particular type of object through one or more extensions.

The following table defines XrObjectType and OpenXR Handle relationships in the core specification:

XrObjectType OpenXR Handle Type

XR_OBJECT_TYPE_UNKNOWN

Unknown/Undefined Handle

XR_OBJECT_TYPE_INSTANCE

XrInstance

XR_OBJECT_TYPE_SESSION

XrSession

XR_OBJECT_TYPE_SWAPCHAIN

XrSwapchain

XR_OBJECT_TYPE_SPACE

XrSpace

XR_OBJECT_TYPE_ACTION_SET

XrActionSet

XR_OBJECT_TYPE_ACTION

XrAction

See Also

Document Notes

For more information, see the OpenXR Specification

This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2025 The Khronos Group Inc.