Monado OpenXR Runtime
comp_swapchain_image Struct Reference

A single swapchain image, holds the needed state for tracking image usage. More...

#include <util/comp_swapchain.h>

Collaboration diagram for comp_swapchain_image:

Data Fields

struct {
   VkImageView *   alpha
 
   VkImageView *   no_alpha
 
views
 Views used by the renderer and distortion code, for each array layer. More...
 
size_t array_size
 The number of array slices in a texture, 1 == regular 2D texture. More...
 
uint32_t use_count
 A usage counter, similar to a reference counter. More...
 
pthread_cond_t use_cond
 A condition variable per swapchain image that is notified when use_count count reaches 0. More...
 
struct os_mutex use_mutex
 A mutex per swapchain image that is used with use_cond. More...
 

Detailed Description

A single swapchain image, holds the needed state for tracking image usage.

See also
comp_swapchain

Field Documentation

◆ array_size

size_t comp_swapchain_image::array_size

The number of array slices in a texture, 1 == regular 2D texture.

◆ use_cond

pthread_cond_t comp_swapchain_image::use_cond

A condition variable per swapchain image that is notified when use_count count reaches 0.

◆ use_count

uint32_t comp_swapchain_image::use_count

A usage counter, similar to a reference counter.

◆ use_mutex

struct os_mutex comp_swapchain_image::use_mutex

A mutex per swapchain image that is used with use_cond.

◆ 

struct { ... } comp_swapchain_image::views

Views used by the renderer and distortion code, for each array layer.

Referenced by do_post_create_vulkan_setup().


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