From 889dc32f67f6522c775f7ce767076dbcf982d032 Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Sat, 18 May 2024 02:22:28 +0200 Subject: [PATCH] scripts: Sort XR_HTC_facial_tracking and XR_FB_body_tracking alphabetically --- scripts/generate_oxr_ext_support.py | 4 +- .../oxr/oxr_extension_support.h | 50 +++++++++---------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/scripts/generate_oxr_ext_support.py b/scripts/generate_oxr_ext_support.py index 73848fbeb..535c737d9 100755 --- a/scripts/generate_oxr_ext_support.py +++ b/scripts/generate_oxr_ext_support.py @@ -65,12 +65,14 @@ EXTENSIONS = ( ['XR_EXT_palm_pose', 'XRT_FEATURE_OPENXR_INTERACTION_EXT_PALM_POSE'], ['XR_EXT_performance_settings', 'XRT_FEATURE_OPENXR_PERFORMANCE_SETTINGS'], ['XR_EXT_samsung_odyssey_controller', 'XRT_FEATURE_OPENXR_INTERACTION_WINMR'], + ['XR_FB_body_tracking', 'XRT_FEATURE_OPENXR_BODY_TRACKING_FB'], ['XR_FB_composition_layer_alpha_blend', 'XRT_FEATURE_OPENXR_LAYER_FB_ALPHA_BLEND'], ['XR_FB_composition_layer_image_layout', 'XRT_FEATURE_OPENXR_LAYER_FB_IMAGE_LAYOUT'], ['XR_FB_composition_layer_settings', 'XRT_FEATURE_OPENXR_LAYER_FB_SETTINGS'], ['XR_FB_composition_layer_depth_test', 'XRT_FEATURE_OPENXR_LAYER_FB_DEPTH_TEST'], ['XR_FB_display_refresh_rate', 'XRT_FEATURE_OPENXR_DISPLAY_REFRESH_RATE'], ['XR_FB_passthrough', 'XRT_FEATURE_OPENXR_LAYER_PASSTHROUGH'], + ['XR_HTC_facial_tracking', 'XRT_FEATURE_OPENXR_FACIAL_TRACKING_HTC'], ['XR_ML_ml2_controller_interaction', 'XRT_FEATURE_OPENXR_INTERACTION_ML2'], ['XR_MND_headless', 'XRT_FEATURE_OPENXR_HEADLESS'], ['XR_MND_swapchain_usage_input_attachment_bit'], @@ -84,8 +86,6 @@ EXTENSIONS = ( ['XR_MNDX_force_feedback_curl', 'XRT_FEATURE_OPENXR_FORCE_FEEDBACK_CURL'], ['XR_MNDX_hydra', 'XRT_FEATURE_OPENXR_INTERACTION_MNDX'], ['XR_MNDX_system_buttons', 'XRT_FEATURE_OPENXR_INTERACTION_MNDX'], - ['XR_HTC_facial_tracking', 'XRT_FEATURE_OPENXR_FACIAL_TRACKING_HTC'], - ['XR_FB_body_tracking', 'XRT_FEATURE_OPENXR_BODY_TRACKING_FB'], ) diff --git a/src/xrt/state_trackers/oxr/oxr_extension_support.h b/src/xrt/state_trackers/oxr/oxr_extension_support.h index 03de2bb20..4284dbf07 100644 --- a/src/xrt/state_trackers/oxr/oxr_extension_support.h +++ b/src/xrt/state_trackers/oxr/oxr_extension_support.h @@ -383,6 +383,17 @@ #endif +/* + * XR_FB_body_tracking + */ +#if defined(XR_FB_body_tracking) && defined(XRT_FEATURE_OPENXR_BODY_TRACKING_FB) +#define OXR_HAVE_FB_body_tracking +#define OXR_EXTENSION_SUPPORT_FB_body_tracking(_) _(FB_body_tracking, FB_BODY_TRACKING) +#else +#define OXR_EXTENSION_SUPPORT_FB_body_tracking(_) +#endif + + /* * XR_FB_composition_layer_alpha_blend */ @@ -453,6 +464,17 @@ #endif +/* + * XR_HTC_facial_tracking + */ +#if defined(XR_HTC_facial_tracking) && defined(XRT_FEATURE_OPENXR_FACIAL_TRACKING_HTC) +#define OXR_HAVE_HTC_facial_tracking +#define OXR_EXTENSION_SUPPORT_HTC_facial_tracking(_) _(HTC_facial_tracking, HTC_FACIAL_TRACKING) +#else +#define OXR_EXTENSION_SUPPORT_HTC_facial_tracking(_) +#endif + + /* * XR_ML_ml2_controller_interaction */ @@ -600,28 +622,6 @@ #define OXR_EXTENSION_SUPPORT_MNDX_system_buttons(_) #endif - -/* - * XR_HTC_facial_tracking - */ -#if defined(XR_HTC_facial_tracking) && defined(XRT_FEATURE_OPENXR_FACIAL_TRACKING_HTC) -#define OXR_HAVE_HTC_facial_tracking -#define OXR_EXTENSION_SUPPORT_HTC_facial_tracking(_) _(HTC_facial_tracking, HTC_FACIAL_TRACKING) -#else -#define OXR_EXTENSION_SUPPORT_HTC_facial_tracking(_) -#endif - - -/* - * XR_FB_body_tracking - */ -#if defined(XR_FB_body_tracking) && defined(XRT_FEATURE_OPENXR_BODY_TRACKING_FB) -#define OXR_HAVE_FB_body_tracking -#define OXR_EXTENSION_SUPPORT_FB_body_tracking(_) _(FB_body_tracking, FB_BODY_TRACKING) -#else -#define OXR_EXTENSION_SUPPORT_FB_body_tracking(_) -#endif - // end of GENERATED per-extension defines - do not modify - used by scripts /*! @@ -678,12 +678,14 @@ OXR_EXTENSION_SUPPORT_EXT_palm_pose(_) \ OXR_EXTENSION_SUPPORT_EXT_performance_settings(_) \ OXR_EXTENSION_SUPPORT_EXT_samsung_odyssey_controller(_) \ + OXR_EXTENSION_SUPPORT_FB_body_tracking(_) \ OXR_EXTENSION_SUPPORT_FB_composition_layer_alpha_blend(_) \ OXR_EXTENSION_SUPPORT_FB_composition_layer_image_layout(_) \ OXR_EXTENSION_SUPPORT_FB_composition_layer_settings(_) \ OXR_EXTENSION_SUPPORT_FB_composition_layer_depth_test(_) \ OXR_EXTENSION_SUPPORT_FB_display_refresh_rate(_) \ OXR_EXTENSION_SUPPORT_FB_passthrough(_) \ + OXR_EXTENSION_SUPPORT_HTC_facial_tracking(_) \ OXR_EXTENSION_SUPPORT_ML_ml2_controller_interaction(_) \ OXR_EXTENSION_SUPPORT_MND_headless(_) \ OXR_EXTENSION_SUPPORT_MND_swapchain_usage_input_attachment_bit(_) \ @@ -696,7 +698,5 @@ OXR_EXTENSION_SUPPORT_MNDX_egl_enable(_) \ OXR_EXTENSION_SUPPORT_MNDX_force_feedback_curl(_) \ OXR_EXTENSION_SUPPORT_MNDX_hydra(_) \ - OXR_EXTENSION_SUPPORT_MNDX_system_buttons(_) \ - OXR_EXTENSION_SUPPORT_HTC_facial_tracking(_) \ - OXR_EXTENSION_SUPPORT_FB_body_tracking(_) + OXR_EXTENSION_SUPPORT_MNDX_system_buttons(_) // clang-format on