30 static inline XrBaseInStructure
const *
31 oxr_find_input_in_chain(
const void *ptr, XrStructureType desired)
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)) 63 static inline XrBaseOutStructure *
64 oxr_find_output_in_chain(
void *ptr, XrStructureType desired)
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)) Include all of the openxr headers in one place.