Add support for alpha environment blend passthrough

This commit is contained in:
Patrick Nicolas
2024-04-12 14:53:22 +02:00
parent f8207631bb
commit 5d91bf0763
3 changed files with 36 additions and 6 deletions
+3
View File
@@ -89,6 +89,9 @@ XrSystemHandTrackingPropertiesEXT xr::system::hand_tracking_properties() const
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))
return passthrough_type::color;
const std::vector<std::string> & xr_extensions = application::get_xr_extensions();
if (utils::contains(xr_extensions, XR_HTC_PASSTHROUGH_EXTENSION_NAME))
return passthrough_type::color;