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:54
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
xrt_result_t comp_layer_accum_cylinder(struct comp_layer_accum *cla, struct xrt_swapchain *xsc, const struct xrt_layer_data *data)
Accumulate swapchain and data for a cylinder layer for a frame.
Definition: comp_layer_accum.c:114
struct xrt_layer_frame_data data
The per frame data, supplied by begin.
Definition: comp_layer_accum.h:90
xrt_result_t comp_layer_accum_equirect1(struct comp_layer_accum *cla, struct xrt_swapchain *xsc, const struct xrt_layer_data *data)
Accumulate swapchain and data for an equirect(1) layer for a frame.
Definition: comp_layer_accum.c:120
xrt_result_t comp_layer_accum_begin(struct comp_layer_accum *cla, const struct xrt_layer_frame_data *data)
Reset all layer data and reset count to 0.
Definition: comp_layer_accum.c:50
xrt_result_t comp_layer_accum_projection_depth(struct comp_layer_accum *cla, struct xrt_swapchain *xsc[XRT_MAX_VIEWS], struct xrt_swapchain *d_xsc[XRT_MAX_VIEWS], const struct xrt_layer_data *data)
Accumulate swapchains and data for a projection layer (with depth image) for a frame.
Definition: comp_layer_accum.c:80
struct comp_layer layers[XRT_MAX_LAYERS]
All of the layers.
Definition: comp_layer_accum.h:93
xrt_result_t comp_layer_accum_quad(struct comp_layer_accum *cla, struct xrt_swapchain *xsc, const struct xrt_layer_data *data)
Accumulate swapchain and data for a quad layer for a frame.
Definition: comp_layer_accum.c:102
xrt_result_t comp_layer_accum_equirect2(struct comp_layer_accum *cla, struct xrt_swapchain *xsc, const struct xrt_layer_data *data)
Accumulate swapchain and data for an equirect2 layer for a frame.
Definition: comp_layer_accum.c:126
xrt_result_t comp_layer_accum_projection(struct comp_layer_accum *cla, struct xrt_swapchain *xsc[XRT_MAX_VIEWS], const struct xrt_layer_data *data)
Accumulate swapchains and data for a projection layer for a frame.
Definition: comp_layer_accum.c:59
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
xrt_result_t comp_layer_accum_cube(struct comp_layer_accum *cla, struct xrt_swapchain *xsc, const struct xrt_layer_data *data)
Accumulate swapchain and data for a cube layer for a frame.
Definition: comp_layer_accum.c:108
A single layer in a comp_layer_accum.
Definition: comp_layer_accum.h:36
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.
Definition: comp_layer_accum.c:42
struct xrt_swapchain * comp_layer_get_swapchain(const struct comp_layer *cl, uint32_t swapchain_index)
Get a (color) swapchain associated with a layer.
Definition: comp_layer_accum.c:35
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:394
enum xrt_layer_type type
Tag for compositor layer type.
Definition: xrt_compositor.h:398
Per frame data for the layer submission calls, used in xrt_compositor::layer_begin.
Definition: xrt_compositor.h:478
Common swapchain interface/base.
Definition: xrt_compositor.h:536
Header declaring XRT graphics interfaces.
Header for limits of the XRT interfaces.
Internal result type for XRT.