Monado OpenXR Runtime
comp_layer Struct Reference

A single layer in a comp_layer_accum. More...

#include <util/comp_layer_accum.h>

Collaboration diagram for comp_layer:

Public Member Functions

struct xrt_swapchaincomp_layer_get_swapchain (const struct comp_layer *cl, uint32_t swapchain_index)
 Get a (color) swapchain associated with a layer. More...
 
struct xrt_swapchaincomp_layer_get_depth_swapchain (const struct comp_layer *cl, uint32_t swapchain_index)
 Get a depth swapchain associated with a (projection with depth) layer. More...
 

Data Fields

struct xrt_swapchainsc_array [XRT_MAX_VIEWS *2]
 Up to two compositor swapchains referenced per view (color and depth) for a layer. More...
 
struct xrt_layer_data data
 All basic (trivially-serializable) data associated with a layer. More...
 

Detailed Description

A single layer in a comp_layer_accum.

Independent of graphics API, swapchain implementation, etc.

See also
comp_layer_accum

Member Function Documentation

◆ comp_layer_get_depth_swapchain()

struct xrt_swapchain * comp_layer_get_depth_swapchain ( const struct comp_layer cl,
uint32_t  swapchain_index 
)

Get a depth swapchain associated with a (projection with depth) layer.

Parameters
claself
swapchain_indexindex of color swapchain - typically this is the view index.

References data, and xrt_layer_data::type.

◆ comp_layer_get_swapchain()

struct xrt_swapchain * comp_layer_get_swapchain ( const struct comp_layer cl,
uint32_t  swapchain_index 
)

Get a (color) swapchain associated with a layer.

Parameters
claself
swapchain_indexindex of swapchain - typically this is 0 for most layers, the view index for projection.

References sc_array.

Field Documentation

◆ data

struct xrt_layer_data comp_layer::data

◆ sc_array

struct xrt_swapchain* comp_layer::sc_array[XRT_MAX_VIEWS *2]

Up to two compositor swapchains referenced per view (color and depth) for a layer.

Unused elements should be set to null.

Referenced by comp_layer_accum::comp_layer_accum_get_swapchain(), and comp_layer_get_swapchain().


The documentation for this struct was generated from the following file: