Forward XR_EXT_user_presence

Closes #258
This commit is contained in:
Sapphire
2025-07-04 23:43:06 +02:00
committed by xytovl
parent f43ee229f1
commit 3ac31fe5cc
10 changed files with 67 additions and 1 deletions
+18
View File
@@ -105,6 +105,24 @@ XrSystemEyeGazeInteractionPropertiesEXT xr::system::eye_gaze_interaction_propert
return eye_gaze_prop;
}
XrSystemUserPresencePropertiesEXT xr::system::user_presence_properties() const
{
if (!id)
throw std::invalid_argument("this");
XrSystemUserPresencePropertiesEXT presence_prop{
.type = XR_TYPE_SYSTEM_USER_PRESENCE_PROPERTIES_EXT,
};
XrSystemProperties prop{
.type = XR_TYPE_SYSTEM_PROPERTIES,
.next = &presence_prop,
};
CHECK_XR(xrGetSystemProperties(*inst, id, &prop));
return presence_prop;
}
XrSystemFaceTrackingProperties2FB xr::system::fb_face_tracking2_properties() const
{
if (!id)