C Specification

The XrSpatialEntityComponentDataSemanticBD structure is defined as:

// Provided by XR_BD_spatial_sensing
typedef struct XrSpatialEntityComponentDataSemanticBD {
    XrStructureType       type;
    void*                 next;
    uint32_t              labelCapacityInput;
    uint32_t              labelCountOutput;
    XrSemanticLabelBD*    labels;
} XrSpatialEntityComponentDataSemanticBD;

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.

  • labelCapacityInput is the capacity of the labels array, or 0 to indicate a request to retrieve the required capacity.

  • labelCountOutput is the number of semantic labels, or the required capacity in the case that labelCapacityInput is insufficient.

  • labels is an array of XrSemanticLabelBD. It can be NULL if labelCapacityInput is 0.

  • See Buffer Size Parameters chapter for a detailed description of retrieving the required labels size.

The XrSpatialEntityComponentDataSemanticBD is an output struct for getting the semantic labels component data from an entity in the snapshot. This corresponds to an XrSpatialEntityComponentTypeBD value of XR_SPATIAL_ENTITY_COMPONENT_TYPE_SEMANTIC_BD.

Description

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.