Forward XR_ANDROID_face_tracking

This commit is contained in:
Sapphire
2025-12-04 11:16:31 +01:00
committed by xytovl
parent ac0a926811
commit 51d8742029
16 changed files with 403 additions and 8 deletions
+12 -2
View File
@@ -38,7 +38,7 @@
namespace wivrn
{
static constexpr int protocol_revision = 2;
static constexpr int protocol_revision = 0;
enum class device_id : uint8_t
{
@@ -211,6 +211,7 @@ struct visibility_mask_changed
enum face_type : uint8_t
{
none,
android,
fb2,
htc,
};
@@ -301,6 +302,15 @@ struct tracking
std::array<view, 2> views;
std::vector<pose> device_poses;
struct android_face
{
std::array<float, XR_FACE_PARAMETER_COUNT_ANDROID> parameters;
std::array<float, XR_FACE_REGION_CONFIDENCE_COUNT_ANDROID> confidences;
XrFaceTrackingStateANDROID state;
bool is_calibrated;
bool is_valid;
};
struct fb_face2
{
std::array<float, XR_FACE_EXPRESSION2_COUNT_FB> weights;
@@ -317,7 +327,7 @@ struct tracking
bool lip_active;
};
std::variant<std::monostate, fb_face2, htc_face> face;
std::variant<std::monostate, android_face, fb_face2, htc_face> face;
};
struct trackings