30static inline XrBaseInStructure
const *
34 XrBaseInStructure
const *base = (XrBaseInStructure
const *)ptr;
35 if (base->type == desired) {
52#define OXR_GET_INPUT_FROM_CHAIN(PTR, STRUCTURE_TYPE_ENUM, TYPE) \
53 ((TYPE const *)oxr_find_input_in_chain(PTR, STRUCTURE_TYPE_ENUM))
63static inline XrBaseOutStructure *
67 XrBaseOutStructure *base = (XrBaseOutStructure *)ptr;
68 if (base->type == desired) {
85#define OXR_GET_OUTPUT_FROM_CHAIN(PTR, STRUCTURE_TYPE_ENUM, TYPE) \
86 ((TYPE *)oxr_find_output_in_chain(PTR, STRUCTURE_TYPE_ENUM))
static XrBaseOutStructure * oxr_find_output_in_chain(void *ptr, XrStructureType desired)
Finds an output struct of the given type in a next-chain.
Definition: oxr_chain.h:64
static XrBaseInStructure const * oxr_find_input_in_chain(const void *ptr, XrStructureType desired)
Finds an input struct of the given type in a next-chain.
Definition: oxr_chain.h:31
Include all of the openxr headers in one place.