st/oxr: Add disabled XR_HTCX_vive_tracker defines

Useful for various compiletime checks.
This commit is contained in:
Korcan Hussein 2023-06-29 00:04:58 +01:00 committed by Jakob Bornecrantz
parent a8c5be8f5c
commit 2aed9184e6
2 changed files with 14 additions and 0 deletions

View file

@ -62,6 +62,7 @@ EXTENSIONS = (
['XR_MND_headless'],
['XR_MND_swapchain_usage_input_attachment_bit'],
['XR_EXTX_overlay'],
['XR_HTCX_vive_tracker_interaction', 'ALWAYS_DISABLED'],
['XR_MNDX_ball_on_a_stick_controller'],
['XR_MNDX_egl_enable', 'XR_USE_PLATFORM_EGL', 'XR_USE_GRAPHICS_API_OPENGL'],
['XR_MNDX_force_feedback_curl'],

View file

@ -349,6 +349,18 @@
#endif
/*
* XR_HTCX_vive_tracker_interaction
*/
#if defined(XR_HTCX_vive_tracker_interaction) && defined(ALWAYS_DISABLED)
#define OXR_HAVE_HTCX_vive_tracker_interaction
#define OXR_EXTENSION_SUPPORT_HTCX_vive_tracker_interaction(_) \
_(HTCX_vive_tracker_interaction, HTCX_VIVE_TRACKER_INTERACTION)
#else
#define OXR_EXTENSION_SUPPORT_HTCX_vive_tracker_interaction(_)
#endif
/*
* XR_MNDX_ball_on_a_stick_controller
*/
@ -446,6 +458,7 @@
OXR_EXTENSION_SUPPORT_MND_headless(_) \
OXR_EXTENSION_SUPPORT_MND_swapchain_usage_input_attachment_bit(_) \
OXR_EXTENSION_SUPPORT_EXTX_overlay(_) \
OXR_EXTENSION_SUPPORT_HTCX_vive_tracker_interaction(_) \
OXR_EXTENSION_SUPPORT_MNDX_ball_on_a_stick_controller(_) \
OXR_EXTENSION_SUPPORT_MNDX_egl_enable(_) \
OXR_EXTENSION_SUPPORT_MNDX_force_feedback_curl(_) \