Assume ft is available on pico when XR_EXT_eye_gaze_interaction is supported
This commit is contained in:
+19
-7
@@ -19,6 +19,7 @@
|
||||
|
||||
#include "application.h"
|
||||
#include "asset.h"
|
||||
#include "hardware.h"
|
||||
#include "openxr/openxr.h"
|
||||
#include "scene.h"
|
||||
#include "spdlog/common.h"
|
||||
@@ -1040,7 +1041,6 @@ void application::initialize()
|
||||
opt_extensions.push_back(XR_HTC_PASSTHROUGH_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_HTC_FACIAL_TRACKING_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_FB_FACE_TRACKING2_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_PICO_EYE_TRACKING_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_EXT_PALM_POSE_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_KHR_COMPOSITION_LAYER_DEPTH_EXTENSION_NAME);
|
||||
opt_extensions.push_back(XR_FB_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME);
|
||||
@@ -1105,6 +1105,24 @@ void application::initialize()
|
||||
XrSystemEyeGazeInteractionPropertiesEXT eye_gaze_properties = xr_system_id.eye_gaze_interaction_properties();
|
||||
spdlog::info(" Eye gaze support: {}", (bool)eye_gaze_properties.supportsEyeGazeInteraction);
|
||||
eye_gaze_supported = eye_gaze_properties.supportsEyeGazeInteraction;
|
||||
|
||||
if (eye_gaze_supported)
|
||||
{
|
||||
switch (guess_model())
|
||||
{
|
||||
case model::pico_4_pro:
|
||||
case model::pico_4_enterprise:
|
||||
pico_face_tracking_supported = true;
|
||||
break;
|
||||
default:
|
||||
pico_face_tracking_supported = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
pico_face_tracking_supported = false;
|
||||
|
||||
spdlog::info(" PICO face tracking support: {}", (bool)pico_face_tracking_supported);
|
||||
}
|
||||
|
||||
if (utils::contains(xr_extensions, XR_FB_FACE_TRACKING2_EXTENSION_NAME))
|
||||
@@ -1123,12 +1141,6 @@ void application::initialize()
|
||||
htc_face_tracking_lip_supported = htc_face_properties.supportLipFacialTracking;
|
||||
}
|
||||
|
||||
if (utils::contains(xr_extensions, XR_PICO_EYE_TRACKING_EXTENSION_NAME))
|
||||
{
|
||||
spdlog::info(" PICO face tracking support: true");
|
||||
pico_face_tracking_supported = true;
|
||||
}
|
||||
|
||||
if (utils::contains(xr_extensions, XR_FB_COMPOSITION_LAYER_SETTINGS_EXTENSION_NAME))
|
||||
{
|
||||
spdlog::info(" OpenXR post-processing extension support: true");
|
||||
|
||||
Reference in New Issue
Block a user