From bb2008ebf2563636cbfbc2fa356ce62973c1a9a4 Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Fri, 22 Mar 2024 23:47:21 +0100 Subject: [PATCH] st/oxr: Add KHR_maintenance1 Part-of: --- 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 22d1cdd1c..6f1e7f17b 100755 --- a/scripts/generate_oxr_ext_support.py +++ b/scripts/generate_oxr_ext_support.py @@ -48,6 +48,7 @@ EXTENSIONS = ( ['XR_KHR_loader_init', 'XR_USE_PLATFORM_ANDROID'], ['XR_KHR_loader_init_android', 'OXR_HAVE_KHR_loader_init', 'XR_USE_PLATFORM_ANDROID'], ['XR_KHR_locate_spaces'], + ['XR_KHR_maintenance1'], ['XR_KHR_opengl_enable', 'XR_USE_GRAPHICS_API_OPENGL'], ['XR_KHR_opengl_es_enable', 'XR_USE_GRAPHICS_API_OPENGL_ES'], ['XR_KHR_swapchain_usage_input_attachment_bit'], diff --git a/src/xrt/state_trackers/oxr/oxr_extension_support.h b/src/xrt/state_trackers/oxr/oxr_extension_support.h index 022b5eed0..7749189e3 100644 --- a/src/xrt/state_trackers/oxr/oxr_extension_support.h +++ b/src/xrt/state_trackers/oxr/oxr_extension_support.h @@ -190,6 +190,17 @@ #endif +/* + * XR_KHR_maintenance1 + */ +#if defined(XR_KHR_maintenance1) +#define OXR_HAVE_KHR_maintenance1 +#define OXR_EXTENSION_SUPPORT_KHR_maintenance1(_) _(KHR_maintenance1, KHR_MAINTENANCE1) +#else +#define OXR_EXTENSION_SUPPORT_KHR_maintenance1(_) +#endif + + /* * XR_KHR_opengl_enable */ @@ -752,6 +763,7 @@ OXR_EXTENSION_SUPPORT_KHR_loader_init(_) \ OXR_EXTENSION_SUPPORT_KHR_loader_init_android(_) \ OXR_EXTENSION_SUPPORT_KHR_locate_spaces(_) \ + OXR_EXTENSION_SUPPORT_KHR_maintenance1(_) \ OXR_EXTENSION_SUPPORT_KHR_opengl_enable(_) \ OXR_EXTENSION_SUPPORT_KHR_opengl_es_enable(_) \ OXR_EXTENSION_SUPPORT_KHR_swapchain_usage_input_attachment_bit(_) \