feat: implement XR_META_boundary_visibility

This commit is contained in:
Nova
2026-09-29 21:52:44 +02:00
committed by xytovl
parent 760c1d3e4f
commit d2b7cc898f
9 changed files with 103 additions and 2 deletions
+18
View File
@@ -242,6 +242,24 @@ XrSystemBodyTrackingPropertiesBD xr::system::bd_body_tracking_properties() const
return body_tracking_prop;
}
XrSystemBoundaryVisibilityPropertiesMETA xr::system::boundary_visibility_properties() const
{
if (!id)
throw std::invalid_argument("this");
XrSystemBoundaryVisibilityPropertiesMETA boundary_prop{
.type = XR_TYPE_SYSTEM_BOUNDARY_VISIBILITY_PROPERTIES_META,
};
XrSystemProperties prop{
.type = XR_TYPE_SYSTEM_PROPERTIES,
.next = &boundary_prop,
};
CHECK_XR(xrGetSystemProperties(*inst, id, &prop));
return boundary_prop;
}
xr::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))