C Specification
The XrSenseDataProviderCreateInfoSpatialMeshBD structure is defined as:
// Provided by XR_BD_spatial_mesh
typedef struct XrSenseDataProviderCreateInfoSpatialMeshBD {
XrStructureType type;
const void* next;
XrSpatialMeshConfigFlagsBD configFlags;
XrSpatialMeshLodBD lod;
} XrSenseDataProviderCreateInfoSpatialMeshBD;
Members
Description
An application creates an XrSenseDataProviderBD handle representing a
a spatial mesh provider by calling xrCreateSenseDataProviderBD,
setting XrSenseDataProviderCreateInfoBD::providerType equal to
the XrSenseDataProviderTypeBD value
XR_SENSE_DATA_PROVIDER_TYPE_MESH_BD, and chaining
XrSenseDataProviderCreateInfoSpatialMeshBD to
XrSenseDataProviderCreateInfoBD::next.
Both the XrSenseDataProviderTypeBD value and the chained
XrSenseDataProviderCreateInfoSpatialMeshBD structure are required.
If XrSenseDataProviderCreateInfoBD::providerType is equal to
XR_SENSE_DATA_PROVIDER_TYPE_MESH_BD but
XrSenseDataProviderCreateInfoSpatialMeshBD is not in the next
chain, the runtime must return XR_ERROR_VALIDATION_FAILURE.
An application uses such a provider to obtain the spatial mesh info that is detected and tracked by the runtime. This data generally consists of spatial entities with at least a XrSpatialEntityComponentDataTriangleMeshBD component.
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.