passthru FB_face_tracking2

This commit is contained in:
galister
2024-08-19 16:35:26 +02:00
committed by xytovl
parent 7f1289bbb0
commit e6f3ae0113
18 changed files with 478 additions and 10 deletions
+18
View File
@@ -105,6 +105,24 @@ XrSystemEyeGazeInteractionPropertiesEXT xr::system::eye_gaze_interaction_propert
return eye_gaze_prop;
}
XrSystemFaceTrackingProperties2FB xr::system::fb_face_tracking2_properties() const
{
if (!id)
throw std::invalid_argument("this");
XrSystemFaceTrackingProperties2FB face_tracking_prop{
.type = XR_TYPE_SYSTEM_FACE_TRACKING_PROPERTIES2_FB,
};
XrSystemProperties prop{
.type = XR_TYPE_SYSTEM_PROPERTIES,
.next = &face_tracking_prop,
};
CHECK_XR(xrGetSystemProperties(*inst, id, &prop));
return face_tracking_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))