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,
  // Provided by XR_BD_spatial_plane
    XR_SPATIAL_ENTITY_COMPONENT_TYPE_PLANE_ORIENTATION_BD = 1000396000,
    XR_SPATIAL_ENTITY_COMPONENT_TYPE_MAX_ENUM_BD = 0x7FFFFFFF
} XrSpatialEntityComponentTypeBD;Description
| Enum | Description | 
|---|---|
| 
 | The location including position and rotation. Corresponds to component data structure XrSpatialEntityComponentDataLocationBD. | 
| 
 | The semantic label. Corresponds to component data structure XrSpatialEntityComponentDataSemanticBD. | 
| 
 | The two-dimensional bounding box. Corresponds to component data structure XrSpatialEntityComponentDataBoundingBox2DBD. | 
| 
 | The two-dimensional polygon. Corresponds to component data structure XrSpatialEntityComponentDataPolygonBD. | 
| 
 | The three-dimensional bounding box. Corresponds to component data structure XrSpatialEntityComponentDataBoundingBox3DBD. | 
| 
 | The triangle mesh. Corresponds to component data structure XrSpatialEntityComponentDataTriangleMeshBD. | 
| 
 | The plane orientation. Corresponds to component data structure XrSpatialEntityComponentDataPlaneOrientationBD.  (Added by the  | 
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
Copyright 2014-2025 The Khronos Group Inc.
This work is licensed under a Creative Commons Attribution 4.0 International License.