C Specification
The XrSpatialComponentPolygon2DListEXT structure is defined as:
// Provided by XR_EXT_spatial_plane_tracking
typedef struct XrSpatialComponentPolygon2DListEXT {
XrStructureType type;
void* next;
uint32_t polygonCount;
XrSpatialPolygon2DDataEXT* polygons;
} XrSpatialComponentPolygon2DListEXT;
Members
Description
To query the polygon 2D component of the spatial entities in an
XrSpatialSnapshotEXT, include
XR_SPATIAL_COMPONENT_TYPE_POLYGON_2D_EXT in
XrSpatialComponentDataQueryConditionEXT::componentTypes and add
XrSpatialComponentPolygon2DListEXT to the
XrSpatialComponentDataQueryResultEXT::next chain.
The runtime must return XR_ERROR_VALIDATION_FAILURE from
xrQuerySpatialComponentDataEXT if
XrSpatialComponentPolygon2DListEXT is in the
XrSpatialComponentDataQueryResultEXT::next chain but
XR_SPATIAL_COMPONENT_TYPE_POLYGON_2D_EXT is not included in
XrSpatialComponentDataQueryConditionEXT::componentTypes.
The runtime must return XR_ERROR_SIZE_INSUFFICIENT from
xrQuerySpatialComponentDataEXT if polygonCount 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-2025 The Khronos Group Inc.
This work is licensed under a Creative Commons Attribution 4.0 International License.