60comp_layer_get_swapchain(
const struct comp_layer *cl, uint32_t swapchain_index);
72comp_layer_get_depth_swapchain(
const struct comp_layer *cl, uint32_t swapchain_index);
186 assert(layer_index < cla->layer_count);
202 assert(layer_index < cla->layer_count);
203 assert(cla->
layers[layer_index].
data.
type == XRT_LAYER_PROJECTION_DEPTH);
204 return cla->
layers[layer_index].
sc_array[XRT_MAX_VIEWS + swapchain_index];
#define XRT_MAX_LAYERS
Max number of layers which can be handled at once.
Definition xrt_limits.h:86
enum xrt_result xrt_result_t
Result type used across Monado.
Collect a stack of layers - one frame's worth.
Definition comp_layer_accum.h:88
uint32_t layer_count
Number of submitted layers.
Definition comp_layer_accum.h:96
struct xrt_layer_frame_data data
The per frame data, supplied by begin.
Definition comp_layer_accum.h:90
struct comp_layer layers[XRT_MAX_LAYERS]
All of the layers.
Definition comp_layer_accum.h:93
struct xrt_swapchain * comp_layer_accum_get_swapchain(const struct comp_layer_accum *cla, uint32_t layer_index, uint32_t swapchain_index)
Get a (color) swapchain associated with a layer.
Definition comp_layer_accum.h:184
struct xrt_swapchain * comp_layer_accum_get_depth_swapchain(const struct comp_layer_accum *cla, uint32_t layer_index, uint32_t swapchain_index)
Get a depth swapchain associated with a (projection with depth) layer.
Definition comp_layer_accum.h:200
A single layer in a comp_layer_accum.
Definition comp_layer_accum.h:36
struct xrt_layer_data data
All basic (trivially-serializable) data associated with a layer.
Definition comp_layer_accum.h:47
struct xrt_swapchain * sc_array[XRT_MAX_VIEWS *2]
Up to two compositor swapchains referenced per view (color and depth) for a layer.
Definition comp_layer_accum.h:42
All the pure data values associated with a composition layer.
Definition xrt_compositor.h:395
enum xrt_layer_type type
Tag for compositor layer type.
Definition xrt_compositor.h:399
Per frame data for the layer submission calls, used in xrt_compositor::layer_begin.
Definition xrt_compositor.h:481
Common swapchain interface/base.
Definition xrt_compositor.h:540
Header declaring XRT graphics interfaces.
Header for limits of the XRT interfaces.
Internal result type for XRT.