C Specification

The XrPassthroughLayerMeshANDROID structure is defined as:

// Provided by XR_ANDROID_composition_layer_passthrough_mesh
typedef struct XrPassthroughLayerMeshANDROID {
    XrStructureType          type;
    const void*              next;
    XrWindingOrderANDROID    windingOrder;
    uint32_t                 vertexCount;
    const XrVector3f*        vertices;
    uint32_t                 indexCount;
    const uint16_t*          indices;
} XrPassthroughLayerMeshANDROID;

Members

Member Descriptions
  • type is the XrStructureType of this structure.

  • next is NULL or a pointer to the next structure in a structure chain.

  • windingOrder is the XrWindingOrderANDROID of the mesh triangles. The runtime must use it for backface culling when rendering the mesh.

  • vertexCount is an uint32_t representing the number of vertices in the mesh. When XrPassthroughLayerCreateInfoANDROID::vertexCapacity is specified, the vertexCount must be less than or equal to the XrPassthroughLayerCreateInfoANDROID::vertexCapacity.

  • vertices is a pointer to an array of vertexCount XrVector3f which contains the vertex positions of the triangle mesh.

  • indexCount is an uint32_t representing the number of indices in the triangle mesh. The last indexCount % 3 indices, if any, will not be drawn. When XrPassthroughLayerCreateInfoANDROID::indexCapacity is specified, the indexCount must be less than or equal to the XrPassthroughLayerCreateInfoANDROID::indexCapacity.

  • indices is a pointer to an array of indexCount uint16_t which contains the indices of the triangle mesh.

Description

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