C Specification
// Provided by XR_EXT_spatial_entity
XR_DEFINE_HANDLE(XrSpatialSnapshotEXT)
Description
The application can create spatial snapshots for the purpose of discovering spatial entities or for updating its information about known spatial entities. The XrSpatialSnapshotEXT handle represents the immutable data for the discovered or updated spatial entities and a subset of their components as selected by the application. The spatial snapshot represents a coherent view of the entities and their component data. Once a snapshot is created, the snapshot’s data must remain constant while the snapshot is valid.
The application can create any number of snapshots it wants but must be mindful of the memory being allocated for each new snapshot and must destroy the snapshots once it no longer needs them.
See Also
XR_DEFINE_HANDLE, XR_EXT_spatial_entity, XrCreateSpatialDiscoverySnapshotCompletionEXT, xrCreateSpatialDiscoverySnapshotAsyncEXT, xrCreateSpatialUpdateSnapshotEXT, xrDestroySpatialSnapshotEXT, xrGetSpatialBufferFloatEXT, xrGetSpatialBufferStringEXT, xrGetSpatialBufferUint16EXT, xrGetSpatialBufferUint32EXT, xrGetSpatialBufferUint8EXT, xrGetSpatialBufferVector2fEXT, xrGetSpatialBufferVector3fEXT, xrQuerySpatialComponentDataEXT
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.