client: support XR_META_foveation_eye_tracked (#1123)

This commit is contained in:
galister
2026-10-22 18:52:55 +02:00
committed by GitHub
parent 2e60fa75e4
commit 76da2e1cb7
20 changed files with 896 additions and 266 deletions
+18
View File
@@ -117,6 +117,24 @@ XrSystemEyeGazeInteractionPropertiesEXT xr::system::eye_gaze_interaction_propert
return eye_gaze_prop;
}
XrSystemFoveationEyeTrackedPropertiesMETA xr::system::foveation_eye_tracked_properties() const
{
if (!id)
throw std::invalid_argument("this");
XrSystemFoveationEyeTrackedPropertiesMETA foveation_prop{
.type = XR_TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META,
};
XrSystemProperties prop{
.type = XR_TYPE_SYSTEM_PROPERTIES,
.next = &foveation_prop,
};
CHECK_XR(xrGetSystemProperties(*inst, id, &prop));
return foveation_prop;
}
XrSystemUserPresencePropertiesEXT xr::system::user_presence_properties() const
{
if (!id)