Skyscraper 2.0
XrToString.h File Reference
#include <openxr/openxr.h>
#include <openxr/openxr_reflection.h>
#include <openxr/openxr_platform.h>
#include <string>
Include dependency graph for XrToString.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  xr
 The xr::DispatchTable struct contains all available PFN pointers to xr functions including those in all extensions. The application should call dispatchTable.Initialize() once creating a new XrInstance to initialize all function pointers. The application should reset the dispatch table by = {} when destroying the instance handle.
 

Macros

#define ENUM_CASE_STR(name, val)   case name: return #name;
 
#define MAKE_TO_CSTRING_FUNC(enumType)
 
#define MAKE_TO_STRING_FUNC(enumType)
 
#define MAKE_TO_STRING_FUNCS(enumType)
 

Functions

 xr::MAKE_TO_STRING_FUNCS (XrReferenceSpaceType)
 
 xr::MAKE_TO_STRING_FUNCS (XrViewConfigurationType)
 
 xr::MAKE_TO_STRING_FUNCS (XrEnvironmentBlendMode)
 
 xr::MAKE_TO_STRING_FUNCS (XrSessionState)
 
 xr::MAKE_TO_STRING_FUNCS (XrResult)
 
 xr::MAKE_TO_STRING_FUNCS (XrStructureType)
 
 xr::MAKE_TO_STRING_FUNCS (XrFormFactor)
 
 xr::MAKE_TO_STRING_FUNCS (XrEyeVisibility)
 
 xr::MAKE_TO_STRING_FUNCS (XrObjectType)
 
 xr::MAKE_TO_STRING_FUNCS (XrActionType)
 
 xr::MAKE_TO_STRING_FUNCS (XrHandEXT)
 
 xr::MAKE_TO_STRING_FUNCS (XrHandPoseTypeMSFT)
 
 xr::MAKE_TO_CSTRING_FUNC (XrHandJointEXT)
 
 xr::MAKE_TO_STRING_FUNCS (XrVisibilityMaskTypeKHR)
 
 xr::MAKE_TO_STRING_FUNCS (XrReprojectionModeMSFT)
 
 xr::MAKE_TO_STRING_FUNCS (XrSceneComponentTypeMSFT)
 
 xr::MAKE_TO_STRING_FUNCS (XrSceneComputeStateMSFT)
 
 xr::MAKE_TO_STRING_FUNCS (XrSceneComputeFeatureMSFT)
 
 xr::MAKE_TO_STRING_FUNCS (XrSpatialGraphNodeTypeMSFT)
 
 xr::MAKE_TO_STRING_FUNCS (XrSceneComputeConsistencyMSFT)
 
 xr::MAKE_TO_STRING_FUNCS (XrMeshComputeLodMSFT)
 

Macro Definition Documentation

◆ ENUM_CASE_STR

#define ENUM_CASE_STR ( name,
val )   case name: return #name;

Definition at line 14 of file XrToString.h.

◆ MAKE_TO_CSTRING_FUNC

#define MAKE_TO_CSTRING_FUNC ( enumType)
Value:
constexpr const char* ToCString(enumType e) noexcept { \
switch (e) { \
XR_LIST_ENUM_##enumType(ENUM_CASE_STR) \
default: return "Unknown " #enumType; \
} \
}
#define ENUM_CASE_STR(name, val)
Definition XrToString.h:14

Definition at line 17 of file XrToString.h.

◆ MAKE_TO_STRING_FUNC

#define MAKE_TO_STRING_FUNC ( enumType)
Value:
inline std::string ToString(enumType e) { \
switch (e) { \
XR_LIST_ENUM_##enumType(ENUM_CASE_STR) \
default: return std::to_string(e); \
} \
}

Definition at line 26 of file XrToString.h.

◆ MAKE_TO_STRING_FUNCS

#define MAKE_TO_STRING_FUNCS ( enumType)
Value:
MAKE_TO_STRING_FUNC(enumType)
#define MAKE_TO_CSTRING_FUNC(enumType)
Definition XrToString.h:17

Definition at line 34 of file XrToString.h.