Monado OpenXR Runtime
|
A single layer in a comp_layer_accum. More...
#include <util/comp_layer_accum.h>
Public Member Functions | |
struct xrt_swapchain * | comp_layer_get_swapchain (const struct comp_layer *cl, uint32_t swapchain_index) |
Get a (color) swapchain associated with a layer. More... | |
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. More... | |
Data Fields | |
struct xrt_swapchain * | sc_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... | |
A single layer in a comp_layer_accum.
Independent of graphics API, swapchain implementation, etc.
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.
cla | self |
swapchain_index | index of color swapchain - typically this is the view index. |
References data, and xrt_layer_data::type.
struct xrt_swapchain * comp_layer_get_swapchain | ( | const struct comp_layer * | cl, |
uint32_t | swapchain_index | ||
) |
Get a (color) swapchain associated with a layer.
cla | self |
swapchain_index | index of swapchain - typically this is 0 for most layers, the view index for projection. |
References sc_array.
struct xrt_layer_data comp_layer::data |
All basic (trivially-serializable) data associated with a layer.
Referenced by comp_layer_accum::comp_layer_accum_get_depth_swapchain(), comp_layer_get_depth_swapchain(), comp_render_gfx_dispatch(), and sdl_program_plus_render().
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().