28 uint32_t vertex_count;
36static inline uint32_t *
39 return (uint32_t *)&mask[1];
51 return (
struct xrt_vec2 *)&indices[mask->index_count];
62 return sizeof(*mask) +
63 sizeof(uint32_t) * mask->index_count +
64 sizeof(
struct xrt_vec2) * mask->vertex_count;
xrt_visibility_mask_type
Visibility mask, mirror of XrVisibilityMaskKHR.
Definition: xrt_defines.h:1965
static size_t xrt_visibility_mask_get_size(const struct xrt_visibility_mask *mask)
Visibility mask helper function to get the total size of the struct.
Definition: xrt_visibility_mask.h:60
static struct xrt_vec2 * xrt_visibility_mask_get_vertices(const struct xrt_visibility_mask *mask)
Visibility mask helper function to get the vertices.
Definition: xrt_visibility_mask.h:48
static uint32_t * xrt_visibility_mask_get_indices(const struct xrt_visibility_mask *mask)
Visibility mask helper function to get the indices.
Definition: xrt_visibility_mask.h:37
A 2 element vector with single floats.
Definition: xrt_defines.h:250
Visibility mask helper, the indices and vertices are tightly packed after this struct.
Definition: xrt_visibility_mask.h:25
Common defines and enums for XRT.