C Specification
The XrSpatialComponentMesh3DListEXT structure is defined as:
// Provided by XR_EXT_spatial_entity
typedef struct XrSpatialComponentMesh3DListEXT {
XrStructureType type;
void* next;
uint32_t meshCount;
XrSpatialMeshDataEXT* meshes;
} XrSpatialComponentMesh3DListEXT;
Members
Description
The application can query the mesh 3D component of the spatial entities in
an XrSpatialSnapshotEXT by adding
XR_SPATIAL_COMPONENT_TYPE_MESH_3D_EXT in
XrSpatialComponentDataQueryConditionEXT::componentTypes and
adding XrSpatialComponentMesh3DListEXT to the next pointer chain of
XrSpatialComponentDataQueryResultEXT.
The runtime must return XR_ERROR_VALIDATION_FAILURE from
xrQuerySpatialComponentDataEXT if
XrSpatialComponentMesh3DListEXT is in the next chain of
XrSpatialComponentDataQueryResultEXT::next but
XrSpatialComponentDataQueryConditionEXT::componentTypeCount is not
zero and XR_SPATIAL_COMPONENT_TYPE_MESH_3D_EXT is not included in
XrSpatialComponentDataQueryConditionEXT::componentTypes.
The runtime must return XR_ERROR_SIZE_INSUFFICIENT from
xrQuerySpatialComponentDataEXT if meshCount is less than
XrSpatialComponentDataQueryResultEXT::entityIdCountOutput.
For the XrSpatialMeshDataEXT filled out by the runtime in the
meshes array, the XrSpatialBufferEXT::bufferType for
XrSpatialMeshDataEXT::vertexBuffer must be
XR_SPATIAL_BUFFER_TYPE_VECTOR3F_EXT and
XrSpatialBufferEXT::bufferType for
XrSpatialMeshDataEXT::indexBuffer must be
XR_SPATIAL_BUFFER_TYPE_UINT32_EXT.
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.