Monado OpenXR Runtime
|
File for negotiating with the loader. More...
#include <stdio.h>
#include <string.h>
#include "xrt/xrt_compiler.h"
#include "util/u_debug.h"
#include "oxr_objects.h"
#include "oxr_logger.h"
#include "oxr_api_funcs.h"
#include "oxr_api_verify.h"
Macros | |
#define | PRINT_NEGOTIATE(...) |
#define | ENTRY(funcName) |
Helper define for generating that GetInstanceProcAddr function. More... | |
#define | ENTRY_IF(funcName, extraCondition, message) |
Helper define for generating that GetInstanceProcAddr function for conditionally-available functions. More... | |
#define | ENTRY_IF_EXT(funcName, short_ext_name) |
Helper define for generating that GetInstanceProcAddr function for extension-provided functions. More... | |
Functions | |
XrResult | xrNegotiateLoaderRuntimeInterface (const XrNegotiateLoaderInfo *loaderInfo, XrNegotiateRuntimeRequest *runtimeRequest) |
XrResult | oxr_xrEnumerateApiLayerProperties (uint32_t propertyCapacityInput, uint32_t *propertyCountOutput, XrApiLayerProperties *properties) |
OpenXR API function xrEnumerateApiLayerProperties. More... | |
XrResult | oxr_xrGetInstanceProcAddr (XrInstance instance, const char *name, PFN_xrVoidFunction *function) |
OpenXR API function xrGetInstanceProcAddr. More... | |
File for negotiating with the loader.
#define ENTRY | ( | funcName | ) |
Helper define for generating that GetInstanceProcAddr function.
Use for functions that should be unconditionally available.
#define ENTRY_IF | ( | funcName, | |
extraCondition, | |||
message | |||
) |
Helper define for generating that GetInstanceProcAddr function for conditionally-available functions.
Checks the extra condition to e.g. find out if the extension is enabled
#define ENTRY_IF_EXT | ( | funcName, | |
short_ext_name | |||
) |
Helper define for generating that GetInstanceProcAddr function for extension-provided functions.
Wraps ENTRY_IF for the common case.
Pass the function name and the (mixed-case) extension name without the leading XR_.
#define PRINT_NEGOTIATE | ( | ... | ) |
Referenced by xrNegotiateLoaderRuntimeInterface().
XrResult xrNegotiateLoaderRuntimeInterface | ( | const XrNegotiateLoaderInfo * | loaderInfo, |
XrNegotiateRuntimeRequest * | runtimeRequest | ||
) |
References oxr_xrGetInstanceProcAddr(), and PRINT_NEGOTIATE.