C Specification

The XrSpatialEntityComponentDataBoundingBox2DBD structure is defined as:

// Provided by XR_BD_spatial_sensing
typedef struct XrSpatialEntityComponentDataBoundingBox2DBD {
    XrStructureType    type;
    void*              next;
    XrRect2Df          boundingBox2D;
} XrSpatialEntityComponentDataBoundingBox2DBD;

Members

Member Descriptions
  • type is the XrStructureType of this structure.

  • next is NULL or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.

  • boundingBox2D is an XrRect2Df defining the offset and extent of the bounding box along the x-axis (width) and y-axis (height).

The XrSpatialEntityComponentDataBoundingBox2DBD is an output struct for getting the bounding box 2D component data from the snapshot. This corresponds to an XrSpatialEntityComponentTypeBD value of XR_SPATIAL_ENTITY_COMPONENT_TYPE_BOUNDING_BOX_2D_BD.

Description

The x-axis and y-axis that describe boundingBox2D are defined by the spatial entity’s coordinate space.

Valid Usage (Implicit)

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.