Monado OpenXR Runtime
chl_scratch_state Struct Reference

Used to track the index of images gotten for the images, and if it has been used. More...

#include <util/comp_high_level_scratch.h>

Collaboration diagram for chl_scratch_state:

Static Public Member Functions

static void chl_scratch_state_init_and_get (struct chl_scratch_state *scratch_state, struct chl_scratch *scratch)
 Zeros out the struct and calls get on all the images, setting the index field on the state for each view. More...
 
static void chl_scratch_state_discard_or_done (struct chl_scratch_state *scratch_state, struct chl_scratch *scratch)
 Calls discard or done on all the scratch images, it calls done if the used field is set to true. More...
 

Data Fields

struct chl_scratch_state_view views [XRT_MAX_VIEWS]
 

Detailed Description

Used to track the index of images gotten for the images, and if it has been used.

The user will need to mark images as used.

Member Function Documentation

◆ chl_scratch_state_discard_or_done()

static void chl_scratch_state_discard_or_done ( struct chl_scratch_state scratch_state,
struct chl_scratch scratch 
)
inlinestatic

◆ chl_scratch_state_init_and_get()

static void chl_scratch_state_init_and_get ( struct chl_scratch_state scratch_state,
struct chl_scratch scratch 
)
inlinestatic

Zeros out the struct and calls get on all the images, setting the index field on the state for each view.

References comp_scratch_single_images::comp_scratch_single_images_get(), chl_scratch::cssi, U_ZERO, and chl_scratch::view_count.

Referenced by chl_frame_state::chl_frame_state_init().


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