st/oxr: Enable XR_MSFT_unbounded_reference_space

This commit is contained in:
Jakob Bornecrantz 2023-11-06 23:51:14 +00:00
parent 72a68cf54b
commit 2d79fb1a3f
4 changed files with 18 additions and 0 deletions

View file

@ -382,6 +382,9 @@ endif()
if(NOT DEFINED XRT_FEATURE_OPENXR_SPACE_LOCAL_FLOOR)
set(XRT_FEATURE_OPENXR_SPACE_LOCAL_FLOOR ON)
endif()
if(NOT DEFINED XRT_FEATURE_OPENXR_SPACE_UNBOUNDED)
set(XRT_FEATURE_OPENXR_SPACE_UNBOUNDED ON)
endif()
# You can set this from a superproject to add a driver
# All drivers must be listed in here to be included in the generated header!

View file

@ -66,6 +66,7 @@ EXTENSIONS = (
['XR_MND_headless'],
['XR_MND_swapchain_usage_input_attachment_bit'],
['XR_MSFT_hand_interaction', 'ALWAYS_DISABLED'],
['XR_MSFT_unbounded_reference_space', 'XRT_FEATURE_OPENXR_SPACE_UNBOUNDED'],
['XR_OPPO_controller_interaction'],
['XR_EXTX_overlay'],
['XR_HTCX_vive_tracker_interaction', 'ALWAYS_DISABLED'],

View file

@ -35,6 +35,7 @@
#cmakedefine XRT_FEATURE_OPENXR_LAYER_EQUIRECT1
#cmakedefine XRT_FEATURE_OPENXR_LAYER_EQUIRECT2
#cmakedefine XRT_FEATURE_OPENXR_SPACE_LOCAL_FLOOR
#cmakedefine XRT_FEATURE_OPENXR_SPACE_UNBOUNDED
#cmakedefine XRT_FEATURE_RENDERDOC
#cmakedefine XRT_FEATURE_SERVICE
#cmakedefine XRT_FEATURE_SERVICE_SYSTEMD

View file

@ -393,6 +393,18 @@
#endif
/*
* XR_MSFT_unbounded_reference_space
*/
#if defined(XR_MSFT_unbounded_reference_space) && defined(XRT_FEATURE_OPENXR_SPACE_UNBOUNDED)
#define OXR_HAVE_MSFT_unbounded_reference_space
#define OXR_EXTENSION_SUPPORT_MSFT_unbounded_reference_space(_) \
_(MSFT_unbounded_reference_space, MSFT_UNBOUNDED_REFERENCE_SPACE)
#else
#define OXR_EXTENSION_SUPPORT_MSFT_unbounded_reference_space(_)
#endif
/*
* XR_OPPO_controller_interaction
*/
@ -539,6 +551,7 @@
OXR_EXTENSION_SUPPORT_MND_headless(_) \
OXR_EXTENSION_SUPPORT_MND_swapchain_usage_input_attachment_bit(_) \
OXR_EXTENSION_SUPPORT_MSFT_hand_interaction(_) \
OXR_EXTENSION_SUPPORT_MSFT_unbounded_reference_space(_) \
OXR_EXTENSION_SUPPORT_OPPO_controller_interaction(_) \
OXR_EXTENSION_SUPPORT_EXTX_overlay(_) \
OXR_EXTENSION_SUPPORT_HTCX_vive_tracker_interaction(_) \