C Specification

The XrVisibilityMaskKHR struct is an input/output struct which specifies the view mask. Upon input to xrGetVisibilityMaskKHR, vertexCount and indexCount refer to the capacity of the vertices and indices members, respectively. Upon return from xrGetVisibilityMaskKHR, vertexCount and indexCount refer to the required capacity of the vertices and indices parameters respectively.

typedef struct XrVisibilityMaskKHR {
    XrStructureType       type;
    void* XR_MAY_ALIAS    next;
    uint32_t              vertexCount;
    XrVector2f*           vertices;
    uint32_t              indexCount;
    uint32_t*             indices;
} XrVisibilityMaskKHR;

Members

Member Descriptions
  • type is the type of this struct

  • next is NULL or a pointer to an extension-specific structure.

  • vertexCount is the count of vertices.

  • vertices is an array of vertices that specify coordinates in texture UV space.

  • indexCount is the count of indices.

  • indices is an array of indices into the vertices array.

Description

Valid Usage (Implicit)
  • The [XR_KHR_visibility_mask] extension must be enabled prior to using XrVisibilityMaskKHR

  • type must be XR_TYPE_VISIBILITY_MASK_KHR

  • next must be NULL

  • vertexCount must be a valid uint32_t value

  • vertices must be a pointer to an XrVector2f structure

  • indexCount must be a valid uint32_t value

  • indices must be a pointer to a uint32_t value

See Also

Document Notes

For more information, see the OpenXR Specification at URL

This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.

Copyright (c) 2014-2019 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.