Add debug log when receiving pico face tracking info

This commit is contained in:
Sapphire
2025-06-01 10:21:47 +02:00
committed by xytovl
parent f7b77d21b8
commit cd72cf68b0
6 changed files with 148 additions and 65 deletions
+1 -37
View File
@@ -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"