C Specification

The XrSpatialEntityComponentTypeBD enumeration identifies the different types of components that spatial entities may support.

// Provided by XR_BD_spatial_sensing
typedef enum XrSpatialEntityComponentTypeBD {
    XR_SPATIAL_ENTITY_COMPONENT_TYPE_LOCATION_BD = 0,
    XR_SPATIAL_ENTITY_COMPONENT_TYPE_SEMANTIC_BD = 1,
    XR_SPATIAL_ENTITY_COMPONENT_TYPE_BOUNDING_BOX_2D_BD = 2,
    XR_SPATIAL_ENTITY_COMPONENT_TYPE_POLYGON_BD = 3,
    XR_SPATIAL_ENTITY_COMPONENT_TYPE_BOUNDING_BOX_3D_BD = 4,
    XR_SPATIAL_ENTITY_COMPONENT_TYPE_TRIANGLE_MESH_BD = 5,
    XR_SPATIAL_ENTITY_COMPONENT_TYPE_SPHERE_BD = 6,
  // Provided by XR_BD_spatial_plane
    XR_SPATIAL_ENTITY_COMPONENT_TYPE_PLANE_ORIENTATION_BD = 1000396000,
  // Provided by XR_BD_dynamic_object_tracking
    XR_SPATIAL_ENTITY_COMPONENT_TYPE_DYNAMIC_OBJECT_BD = 1000746000,
    XR_SPATIAL_ENTITY_COMPONENT_TYPE_MAX_ENUM_BD = 0x7FFFFFFF
} XrSpatialEntityComponentTypeBD;

Description

Enum Description

XR_SPATIAL_ENTITY_COMPONENT_TYPE_LOCATION_BD

The location including position and rotation. Corresponds to component data structure XrSpatialEntityComponentDataLocationBD.

XR_SPATIAL_ENTITY_COMPONENT_TYPE_SEMANTIC_BD

The semantic label. Corresponds to component data structure XrSpatialEntityComponentDataSemanticBD.

XR_SPATIAL_ENTITY_COMPONENT_TYPE_BOUNDING_BOX_2D_BD

The two-dimensional bounding box. Corresponds to component data structure XrSpatialEntityComponentDataBoundingBox2DBD.

XR_SPATIAL_ENTITY_COMPONENT_TYPE_POLYGON_BD

The two-dimensional polygon. Corresponds to component data structure XrSpatialEntityComponentDataPolygonBD.

XR_SPATIAL_ENTITY_COMPONENT_TYPE_BOUNDING_BOX_3D_BD

The three-dimensional bounding box. Corresponds to component data structure XrSpatialEntityComponentDataBoundingBox3DBD.

XR_SPATIAL_ENTITY_COMPONENT_TYPE_TRIANGLE_MESH_BD

The triangle mesh. Corresponds to component data structure XrSpatialEntityComponentDataTriangleMeshBD.

XR_SPATIAL_ENTITY_COMPONENT_TYPE_SPHERE_BD

The Sphere. Corresponds to component data structure XrSpatialEntityComponentDataSphereBD.

XR_SPATIAL_ENTITY_COMPONENT_TYPE_PLANE_ORIENTATION_BD

The plane orientation. Corresponds to component data structure XrSpatialEntityComponentDataPlaneOrientationBD. (Added by the XR_BD_spatial_plane extension)

XR_SPATIAL_ENTITY_COMPONENT_TYPE_DYNAMIC_OBJECT_BD

The dynamic object component. Corresponds to component data structure XrSpatialEntityComponentDataDynamicObjectBD. (Added by the XR_BD_dynamic_object_tracking extension)

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-2026 The Khronos Group Inc.