diff --git a/scripts/generate_oxr_ext_support.py b/scripts/generate_oxr_ext_support.py index 14ec3ce05..290e5de57 100755 --- a/scripts/generate_oxr_ext_support.py +++ b/scripts/generate_oxr_ext_support.py @@ -26,6 +26,7 @@ EXTENSIONS = ( ['XR_EXT_debug_utils'], ['XR_MND_headless'], ['XR_MND_swapchain_usage_input_attachment_bit'], + ['XR_KHR_swapchain_usage_input_attachment_bit'], ['XR_EXTX_overlay'], ['XR_MNDX_egl_enable', 'XR_USE_PLATFORM_EGL', 'XR_USE_GRAPHICS_API_OPENGL'], ['XR_MNDX_ball_on_a_stick_controller'], diff --git a/src/xrt/state_trackers/oxr/oxr_extension_support.h b/src/xrt/state_trackers/oxr/oxr_extension_support.h index 3833f4a2d..a34b14f8a 100644 --- a/src/xrt/state_trackers/oxr/oxr_extension_support.h +++ b/src/xrt/state_trackers/oxr/oxr_extension_support.h @@ -200,6 +200,18 @@ #endif +/* + * XR_KHR_swapchain_usage_input_attachment_bit + */ +#if defined(XR_KHR_swapchain_usage_input_attachment_bit) +#define OXR_HAVE_KHR_swapchain_usage_input_attachment_bit +#define OXR_EXTENSION_SUPPORT_KHR_swapchain_usage_input_attachment_bit(_) \ + _(KHR_swapchain_usage_input_attachment_bit, KHR_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT) +#else +#define OXR_EXTENSION_SUPPORT_KHR_swapchain_usage_input_attachment_bit(_) +#endif + + /* * XR_EXTX_overlay */ @@ -284,6 +296,7 @@ OXR_EXTENSION_SUPPORT_EXT_debug_utils(_) \ OXR_EXTENSION_SUPPORT_MND_headless(_) \ OXR_EXTENSION_SUPPORT_MND_swapchain_usage_input_attachment_bit(_) \ + OXR_EXTENSION_SUPPORT_KHR_swapchain_usage_input_attachment_bit(_) \ OXR_EXTENSION_SUPPORT_EXTX_overlay(_) \ OXR_EXTENSION_SUPPORT_MNDX_egl_enable(_) \ OXR_EXTENSION_SUPPORT_MNDX_ball_on_a_stick_controller(_) \