st/oxr: Generate headers for XR_KHR_binding_modification

This commit is contained in:
Jakob Bornecrantz 2022-01-04 21:57:07 +00:00 committed by Jakob Bornecrantz
parent 6296c9ded5
commit 6a54b4e6e3
2 changed files with 13 additions and 0 deletions

View file

@ -11,6 +11,7 @@ from pathlib import Path
# Keep sorted, KHR, EXT, Vendor, experimental (same order). # Keep sorted, KHR, EXT, Vendor, experimental (same order).
EXTENSIONS = ( EXTENSIONS = (
['XR_KHR_android_create_instance', 'XR_USE_PLATFORM_ANDROID'], ['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_cube', 'XRT_FEATURE_OPENXR_LAYER_CUBE'],
['XR_KHR_composition_layer_cylinder', 'XRT_FEATURE_OPENXR_LAYER_CYLINDER'], ['XR_KHR_composition_layer_cylinder', 'XRT_FEATURE_OPENXR_LAYER_CYLINDER'],
['XR_KHR_composition_layer_depth', 'XRT_FEATURE_OPENXR_LAYER_DEPTH'], ['XR_KHR_composition_layer_depth', 'XRT_FEATURE_OPENXR_LAYER_DEPTH'],

View file

@ -32,6 +32,17 @@
#endif #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 * XR_KHR_composition_layer_cube
*/ */
@ -315,6 +326,7 @@
// clang-format off // clang-format off
#define OXR_EXTENSION_SUPPORT_GENERATE(_) \ #define OXR_EXTENSION_SUPPORT_GENERATE(_) \
OXR_EXTENSION_SUPPORT_KHR_android_create_instance(_) \ 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_cube(_) \
OXR_EXTENSION_SUPPORT_KHR_composition_layer_cylinder(_) \ OXR_EXTENSION_SUPPORT_KHR_composition_layer_cylinder(_) \
OXR_EXTENSION_SUPPORT_KHR_composition_layer_depth(_) \ OXR_EXTENSION_SUPPORT_KHR_composition_layer_depth(_) \