Monado OpenXR Runtime
Loading...
Searching...
No Matches
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.
 
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.
 

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

Calls discard or done on all the scratch images, it calls done if the used field is set to true.

References chl_scratch::cssi, U_ZERO, and chl_scratch::view_count.

◆ 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 chl_scratch::cssi, U_ZERO, and chl_scratch::view_count.


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