C Specification
The xrGetSubmeshDataANDROID function is defined as:
// Provided by XR_ANDROID_scene_meshing
XrResult xrGetSubmeshDataANDROID(
XrSceneMeshSnapshotANDROID snapshot,
uint32_t submeshDataCount,
XrSceneSubmeshDataANDROID* inoutSubmeshData);
Parameters
Description
The application can use the xrGetSubmeshDataANDROID function to get
batches of submeshes, or all submeshes at once, by passing a list of
XrSceneSubmeshDataANDROID with each
XrSceneSubmeshDataANDROID::submeshId set to the respective id of
the submesh to retrieve.
The XrSceneSubmeshDataANDROID::submeshId must be unique for
every element in inoutSubmeshData and retrievable by
xrGetAllSubmeshStatesANDROID for the same snapshot.
If the submesh Id is invalid or more than one elements in
inoutSubmeshData have the same submesh id, then the runtime must
return XR_ERROR_VALIDATION_FAILURE.
submeshDataCount must be equal or less than the value returned by
xrGetAllSubmeshStatesANDROID::submeshStateCountOutput, otherwise
the runtime must return XR_ERROR_VALIDATION_FAILURE.
This can be used in a 2-call idiom to query the vertex and index count for all of the selected submeshes.
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-2026 The Khronos Group Inc.
This work is licensed under a Creative Commons Attribution 4.0 International License.