From 6a54b4e6e30c2bbed8a71ca85518ab816aee2afd Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Tue, 4 Jan 2022 21:57:07 +0000 Subject: [PATCH] st/oxr: Generate headers for XR_KHR_binding_modification --- scripts/generate_oxr_ext_support.py | 1 + src/xrt/state_trackers/oxr/oxr_extension_support.h | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/scripts/generate_oxr_ext_support.py b/scripts/generate_oxr_ext_support.py index f0f300490..38f2f5374 100755 --- a/scripts/generate_oxr_ext_support.py +++ b/scripts/generate_oxr_ext_support.py @@ -11,6 +11,7 @@ from pathlib import Path # Keep sorted, KHR, EXT, Vendor, experimental (same order). EXTENSIONS = ( ['XR_KHR_android_create_instance', 'XR_USE_PLATFORM_ANDROID'], + ['XR_KHR_binding_modification'], ['XR_KHR_composition_layer_cube', 'XRT_FEATURE_OPENXR_LAYER_CUBE'], ['XR_KHR_composition_layer_cylinder', 'XRT_FEATURE_OPENXR_LAYER_CYLINDER'], ['XR_KHR_composition_layer_depth', 'XRT_FEATURE_OPENXR_LAYER_DEPTH'], diff --git a/src/xrt/state_trackers/oxr/oxr_extension_support.h b/src/xrt/state_trackers/oxr/oxr_extension_support.h index 1dd562874..761a18d35 100644 --- a/src/xrt/state_trackers/oxr/oxr_extension_support.h +++ b/src/xrt/state_trackers/oxr/oxr_extension_support.h @@ -32,6 +32,17 @@ #endif +/* + * XR_KHR_binding_modification + */ +#if defined(XR_KHR_binding_modification) +#define OXR_HAVE_KHR_binding_modification +#define OXR_EXTENSION_SUPPORT_KHR_binding_modification(_) _(KHR_binding_modification, KHR_BINDING_MODIFICATION) +#else +#define OXR_EXTENSION_SUPPORT_KHR_binding_modification(_) +#endif + + /* * XR_KHR_composition_layer_cube */ @@ -315,6 +326,7 @@ // clang-format off #define OXR_EXTENSION_SUPPORT_GENERATE(_) \ OXR_EXTENSION_SUPPORT_KHR_android_create_instance(_) \ + OXR_EXTENSION_SUPPORT_KHR_binding_modification(_) \ OXR_EXTENSION_SUPPORT_KHR_composition_layer_cube(_) \ OXR_EXTENSION_SUPPORT_KHR_composition_layer_cylinder(_) \ OXR_EXTENSION_SUPPORT_KHR_composition_layer_depth(_) \