[Bf-blender-cvs] [5a0ec2302ee] master: XR: Enable controller profile extensions

Peter Kim noreply at git.blender.org
Wed Aug 25 14:37:06 CEST 2021


Commit: 5a0ec2302eeb33a03b36f8021bb2338e0dba2ee4
Author: Peter Kim
Date:   Wed Aug 25 21:36:53 2021 +0900
Branches: master
https://developer.blender.org/rB5a0ec2302eeb33a03b36f8021bb2338e0dba2ee4

XR: Enable controller profile extensions

Enables all currently documented OpenXR controller profile
extensions (Reverb G2, Vive Cosmos, Huawei Controller) in order to
support bindings for more VR hardware.

This is necessary because, if these extensions are not enabled, the
OpenXR runtime will return an error when creating a binding with one
of these profiles.

Does not bring about any changes for users at the moment, since
default controller actions have not yet been exposed to users (will
be addressed with D10944, D10948, and D11271).

===================================================================

M	intern/ghost/intern/GHOST_XrContext.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_XrContext.cpp b/intern/ghost/intern/GHOST_XrContext.cpp
index 2906a6b241e..a7498e9f91f 100644
--- a/intern/ghost/intern/GHOST_XrContext.cpp
+++ b/intern/ghost/intern/GHOST_XrContext.cpp
@@ -410,6 +410,11 @@ void GHOST_XrContext::getExtensionsToEnable(
     try_ext.push_back(XR_EXT_DEBUG_UTILS_EXTENSION_NAME);
   }
 
+  /* Try enabling interaction profile extensions. */
+  try_ext.push_back(XR_EXT_HP_MIXED_REALITY_CONTROLLER_EXTENSION_NAME);
+  try_ext.push_back(XR_HTC_VIVE_COSMOS_CONTROLLER_INTERACTION_EXTENSION_NAME);
+  try_ext.push_back(XR_HUAWEI_CONTROLLER_INTERACTION_EXTENSION_NAME);
+
   r_ext_names.reserve(try_ext.size() + graphics_binding_types.size());
 
   /* Add graphics binding extensions (may be multiple ones, we'll settle for one to use later, once



More information about the Bf-blender-cvs mailing list