C Specification
The XrSpatialComponentObjectSemanticLabelListANDROID structure is defined as:
// Provided by XR_ANDROID_spatial_object_tracking
typedef struct XrSpatialComponentObjectSemanticLabelListANDROID {
XrStructureType type;
void* next;
uint32_t semanticLabelCount;
XrSpatialObjectSemanticLabelANDROID* semanticLabels;
} XrSpatialComponentObjectSemanticLabelListANDROID;
Members
Description
The application can query the semantic label component of the spatial
entities in an XrSpatialSnapshotEXT by adding
XR_TYPE_SPATIAL_COMPONENT_OBJECT_SEMANTIC_LABEL_LIST_ANDROID in
XrSpatialComponentDataQueryConditionEXT::componentTypes and
adding XrSpatialComponentObjectSemanticLabelListANDROID to the next
pointer chain of XrSpatialComponentDataQueryResultEXT.
The runtime must return XR_ERROR_VALIDATION_FAILURE from
xrQuerySpatialComponentDataEXT if
XrSpatialComponentObjectSemanticLabelListANDROID is in the next chain
of XrSpatialComponentDataQueryResultEXT::next but
XR_SPATIAL_COMPONENT_TYPE_OBJECT_SEMANTIC_LABEL_ANDROID is not
included in
XrSpatialComponentDataQueryConditionEXT::componentTypes.
The runtime must return XR_ERROR_SIZE_INSUFFICIENT from
xrQuerySpatialComponentDataEXT if semanticLabelCount is less
than XrSpatialComponentDataQueryResultEXT::entityIdCountOutput.
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-2026 The Khronos Group Inc.
This work is licensed under a Creative Commons Attribution 4.0 International License.