Add debug log when receiving pico face tracking info
This commit is contained in:
+1
-37
@@ -26,40 +26,4 @@
|
||||
#include "swapchain.h"
|
||||
#include "system.h"
|
||||
#include "xr/check.h"
|
||||
#include "xr/pico_eye_types.h"
|
||||
#include "xr/pico_eye_types_reflection.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <string>
|
||||
#include <openxr/openxr_reflection.h>
|
||||
|
||||
namespace xr
|
||||
{
|
||||
#define XR_ENUM_CASE_STR(name, val) \
|
||||
case name: \
|
||||
return #name;
|
||||
#define XR_ENUM_STR(enumType) \
|
||||
constexpr const char * to_string(enumType e) \
|
||||
{ \
|
||||
switch (e) \
|
||||
{ \
|
||||
XR_LIST_ENUM_##enumType(XR_ENUM_CASE_STR) default : return "Unknown"; \
|
||||
} \
|
||||
}
|
||||
|
||||
XR_ENUM_STR(XrResult);
|
||||
XR_ENUM_STR(XrFormFactor);
|
||||
XR_ENUM_STR(XrViewConfigurationType);
|
||||
XR_ENUM_STR(XrEnvironmentBlendMode);
|
||||
XR_ENUM_STR(XrReferenceSpaceType);
|
||||
XR_ENUM_STR(XrActionType);
|
||||
XR_ENUM_STR(XrEyeVisibility);
|
||||
XR_ENUM_STR(XrSessionState);
|
||||
XR_ENUM_STR(XrObjectType);
|
||||
XR_ENUM_STR(XrStructureType);
|
||||
|
||||
XR_ENUM_STR(XrTrackingStateCodePICO);
|
||||
|
||||
std::string to_string(XrVersion version);
|
||||
|
||||
} // namespace xr
|
||||
#include "xr/to_string.h"
|
||||
Reference in New Issue
Block a user