Monado OpenXR Runtime
Data Fields
xrt_swapchain Struct Reference

Common swapchain base. More...

#include <xrt/xrt_compositor.h>

Data Fields

uint32_t num_images
 Number of images, the images themselves are on the subclasses. More...
 
uint32_t array_size
 Number of array layers per image. More...
 
void(* destroy )(struct xrt_swapchain *xsc)
 Must have called release_image before calling this function. More...
 
bool(* acquire_image )(struct xrt_swapchain *xsc, uint32_t *index)
 See xrWaitSwapchainImage, must make sure that no image is acquired before calling acquire_image. More...
 
bool(* wait_image )(struct xrt_swapchain *xsc, uint64_t timeout, uint32_t index)
 See xrWaitSwapchainImage, state tracker needs to track index. More...
 
bool(* release_image )(struct xrt_swapchain *xsc, uint32_t index)
 See xrReleaseSwapchainImage, state tracker needs to track index. More...
 

Detailed Description

Common swapchain base.

Field Documentation

◆ acquire_image

bool(* xrt_swapchain::acquire_image) (struct xrt_swapchain *xsc, uint32_t *index)

See xrWaitSwapchainImage, must make sure that no image is acquired before calling acquire_image.

◆ array_size

uint32_t xrt_swapchain::array_size

Number of array layers per image.

Referenced by comp_swapchain_really_destroy().

◆ destroy

void(* xrt_swapchain::destroy) (struct xrt_swapchain *xsc)

Must have called release_image before calling this function.

◆ num_images

uint32_t xrt_swapchain::num_images

Number of images, the images themselves are on the subclasses.

Referenced by comp_swapchain_really_destroy(), and oxr_xrEnumerateSwapchainImages().

◆ release_image

bool(* xrt_swapchain::release_image) (struct xrt_swapchain *xsc, uint32_t index)

See xrReleaseSwapchainImage, state tracker needs to track index.

◆ wait_image

bool(* xrt_swapchain::wait_image) (struct xrt_swapchain *xsc, uint64_t timeout, uint32_t index)

See xrWaitSwapchainImage, state tracker needs to track index.


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