6#include <openxr/openxr.h>
7#include <openxr/openxr_reflection.h>
8#include <openxr/openxr_platform.h>
14#define ENUM_CASE_STR(name, val) case name: return #name;
17#define MAKE_TO_CSTRING_FUNC(enumType) \
18 constexpr const char* ToCString(enumType e) noexcept { \
20 XR_LIST_ENUM_##enumType(ENUM_CASE_STR) \
21 default: return "Unknown " #enumType; \
26#define MAKE_TO_STRING_FUNC(enumType) \
27 inline std::string ToString(enumType e) { \
29 XR_LIST_ENUM_##enumType(ENUM_CASE_STR) \
30 default: return std::to_string(e); \
34#define MAKE_TO_STRING_FUNCS(enumType) \
35 MAKE_TO_CSTRING_FUNC(enumType) \
36 MAKE_TO_STRING_FUNC(enumType)
#define MAKE_TO_STRING_FUNCS(enumType)
#define MAKE_TO_CSTRING_FUNC(enumType)
The xr::DispatchTable struct contains all available PFN pointers to xr functions including those in a...