C Specification

The XrSoundTriangleMeshBD structure is described as:

// Provided by XR_BD_spatial_audio_rendering
typedef struct XrSoundTriangleMeshBD {
    XrStructureType    type;
    const void*        next;
    uint32_t           vertexCount;
    XrVector3f*        vertices;
    uint32_t           indexCount;
    uint32_t*          indices;
} XrSoundTriangleMeshBD;

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.

  • vertexCount is the number of vertices in the triangle mesh.

  • vertices is a pointer to an array of XrVector3f vertices.

  • indexCount is the number of indices in the triangle mesh.

  • indices is a pointer to an array of indices that defines the triangles.

Description

The XrSoundTriangleMeshBD structure describes the shape of a sound obstacle. The vertices are in counter-clockwise order as viewed from the user perspective. Only the front faces are considered when rendering the sound. The indices array defines the topology of the triangle mesh. Each triplet of consecutive elements points to three vertices in the vertices array and thus form a triangle.

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.