Quest and Pico body tracking

* Update OpenXR SDK to 1.1.48
This commit is contained in:
Sapphire
2025-06-08 18:07:23 +02:00
committed by xytovl
parent e29a08ea2e
commit 460fbec06d
28 changed files with 949 additions and 6 deletions
+36
View File
@@ -141,6 +141,42 @@ XrSystemFacialTrackingPropertiesHTC xr::system::htc_face_tracking_properties() c
return face_tracking_prop;
}
XrSystemBodyTrackingPropertiesFB xr::system::fb_body_tracking_properties() const
{
if (!id)
throw std::invalid_argument("this");
XrSystemBodyTrackingPropertiesFB body_tracking_prop{
.type = XR_TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB,
};
XrSystemProperties prop{
.type = XR_TYPE_SYSTEM_PROPERTIES,
.next = &body_tracking_prop,
};
CHECK_XR(xrGetSystemProperties(*inst, id, &prop));
return body_tracking_prop;
}
XrSystemBodyTrackingPropertiesBD xr::system::bd_body_tracking_properties() const
{
if (!id)
throw std::invalid_argument("this");
XrSystemBodyTrackingPropertiesBD body_tracking_prop{
.type = XR_TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_BD,
};
XrSystemProperties prop{
.type = XR_TYPE_SYSTEM_PROPERTIES,
.next = &body_tracking_prop,
};
CHECK_XR(xrGetSystemProperties(*inst, id, &prop));
return body_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))