![]() |
HoviTron Video Pipeline
|
Some useful functions from the openXR sample (hello_xr) More...
Go to the source code of this file.
Macros | |
#define | ENUM_CASE_STR(name, val) case name: return #name; |
#define | MAKE_TO_STRING_FUNC(enumType) |
#define | CHK_STRINGIFY(x) #x |
#define | TOSTRING(x) CHK_STRINGIFY(x) |
#define | FILE_AND_LINE __FILE__ ":" TOSTRING(__LINE__) |
#define | THROW(msg) Throw(msg, nullptr, FILE_AND_LINE); |
#define | CHECK(exp) |
#define | CHECK_MSG(exp, msg) |
#define | THROW_XR(xr, cmd) ThrowXrResult(xr, #cmd, FILE_AND_LINE); |
#define | CHECK_XRCMD(cmd) CheckXrResult(cmd, #cmd, FILE_AND_LINE); |
#define | CHECK_XRRESULT(res, cmdStr) CheckXrResult(res, cmdStr, FILE_AND_LINE); |
Functions | |
MAKE_TO_STRING_FUNC (XrReferenceSpaceType) | |
MAKE_TO_STRING_FUNC (XrViewConfigurationType) | |
MAKE_TO_STRING_FUNC (XrEnvironmentBlendMode) | |
MAKE_TO_STRING_FUNC (XrSessionState) | |
MAKE_TO_STRING_FUNC (XrResult) | |
MAKE_TO_STRING_FUNC (XrFormFactor) | |
std::string | Fmt (const char *fmt,...) |
void | Throw (std::string failureMessage, const char *originator=nullptr, const char *sourceLocation=nullptr) |
void | ThrowXrResult (XrResult res, const char *originator=nullptr, const char *sourceLocation=nullptr) |
XrResult | CheckXrResult (XrResult res, const char *originator=nullptr, const char *sourceLocation=nullptr) |
std::vector< const char * > | ParseExtensionString (char *names) |
Some useful functions from the openXR sample (hello_xr)
This file contains some usefull function, macro and struct to be used with openxr. The code here is mainly relate to error handling and getting error message with meaning.
Definition in file openXRHelp.h.
#define CHECK | ( | exp | ) |
Definition at line 87 of file openXRHelp.h.
#define CHECK_MSG | ( | exp, | |
msg | |||
) |
Definition at line 93 of file openXRHelp.h.
#define CHECK_XRCMD | ( | cmd | ) | CheckXrResult(cmd, #cmd, FILE_AND_LINE); |
Definition at line 113 of file openXRHelp.h.
#define CHECK_XRRESULT | ( | res, | |
cmdStr | |||
) | CheckXrResult(res, cmdStr, FILE_AND_LINE); |
Definition at line 114 of file openXRHelp.h.
#define CHK_STRINGIFY | ( | x | ) | #x |
Definition at line 71 of file openXRHelp.h.
#define ENUM_CASE_STR | ( | name, | |
val | |||
) | case name: return #name; |
Definition at line 33 of file openXRHelp.h.
#define FILE_AND_LINE __FILE__ ":" TOSTRING(__LINE__) |
Definition at line 73 of file openXRHelp.h.
#define MAKE_TO_STRING_FUNC | ( | enumType | ) |
Definition at line 34 of file openXRHelp.h.
#define THROW | ( | msg | ) | Throw(msg, nullptr, FILE_AND_LINE); |
Definition at line 86 of file openXRHelp.h.
#define THROW_XR | ( | xr, | |
cmd | |||
) | ThrowXrResult(xr, #cmd, FILE_AND_LINE); |
Definition at line 112 of file openXRHelp.h.
#define TOSTRING | ( | x | ) | CHK_STRINGIFY(x) |
Definition at line 72 of file openXRHelp.h.
|
inline |
Definition at line 104 of file openXRHelp.h.
|
inline |
Definition at line 50 of file openXRHelp.h.
|
inline |
Definition at line 116 of file openXRHelp.h.
|
inline |
Definition at line 75 of file openXRHelp.h.
|
inline |
Definition at line 100 of file openXRHelp.h.