passthru EXT_eye_gaze_interaction

This commit is contained in:
galister
2024-08-01 12:08:05 +02:00
committed by xytovl
parent 4cfdc4fa24
commit f0ca7ff8da
11 changed files with 78 additions and 7 deletions
+18
View File
@@ -87,6 +87,24 @@ XrSystemHandTrackingPropertiesEXT xr::system::hand_tracking_properties() const
return hand_tracking_prop;
}
XrSystemEyeGazeInteractionPropertiesEXT xr::system::eye_gaze_interaction_properties() const
{
if (!id)
throw std::invalid_argument("this");
XrSystemEyeGazeInteractionPropertiesEXT eye_gaze_prop{
.type = XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT,
};
XrSystemProperties prop{
.type = XR_TYPE_SYSTEM_PROPERTIES,
.next = &eye_gaze_prop,
};
CHECK_XR(xrGetSystemProperties(*inst, id, &prop));
return eye_gaze_prop;
}
xr::system::passthrough_type xr::system::passthrough_supported() const
{
if (utils::contains(environment_blend_modes(XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO), XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND))