Vulkan Schnee
0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
XrErrorCodes.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <openxr/openxr.h>
4
#include <string>
5
6
namespace
EngineCore
{
7
class
XrErrorCodes
{
8
static
std::string
getXrErrorString
(XrResult result) {
9
switch
(result) {
10
case
XR_SUCCESS:
return
"XR_SUCCESS"
;
11
case
XR_TIMEOUT_EXPIRED:
return
"XR_TIMEOUT_EXPIRED"
;
12
case
XR_SESSION_LOSS_PENDING:
return
"XR_SESSION_LOSS_PENDING"
;
13
case
XR_EVENT_UNAVAILABLE:
return
"XR_EVENT_UNAVAILABLE"
;
14
case
XR_SPACE_BOUNDS_UNAVAILABLE:
return
"XR_SPACE_BOUNDS_UNAVAILABLE"
;
15
case
XR_SESSION_NOT_FOCUSED:
return
"XR_SESSION_NOT_FOCUSED"
;
16
case
XR_FRAME_DISCARDED:
return
"XR_FRAME_DISCARDED"
;
17
default
:
18
return
"Unknown error code: "
+ std::to_string(result);
19
}
20
}
21
};
22
}
EngineCore::XrErrorCodes
Definition
XrErrorCodes.h:7
EngineCore::XrErrorCodes::getXrErrorString
static std::string getXrErrorString(XrResult result)
Definition
XrErrorCodes.h:8
EngineCore
Log category system implementation.
Definition
CameraComponent.cpp:8
Engine
include
Engine
XR
XrErrorCodes.h
Generated by
1.14.0