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

Member Descriptions
  • type is the XrStructureType of this structure.

  • next is NULL or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.

  • configFlags is the XrSpatialMeshConfigFlagBitsBD of the configurations.

  • lod is the XrSpatialMeshLodBD which represent spatial mesh level.

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.

Valid Usage (Implicit)

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 2014-2025 The Khronos Group Inc.