Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorPeter Kim <pk15950@gmail.com>2021-08-25 15:36:53 +0300
committerPeter Kim <pk15950@gmail.com>2021-08-25 15:36:53 +0300
commit5a0ec2302eeb33a03b36f8021bb2338e0dba2ee4 (patch)
tree0c29cebc20d39485aff3223cf5d28875e052e651 /intern
parent940ba74024e57899e171c797240ce3fdebc87b16 (diff)
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).
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_XrContext.cpp5
1 files changed, 5 insertions, 0 deletions
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