st/oxr: Add XR_FB_display_refresh_rate ext to script

This commit is contained in:
Christoph Haag 2021-09-12 10:31:45 +02:00 committed by Christoph Haag
parent 3f98ea5595
commit eae7231f83
2 changed files with 15 additions and 2 deletions

View file

@ -30,7 +30,8 @@ EXTENSIONS = (
['XR_EXTX_overlay'], ['XR_EXTX_overlay'],
['XR_MNDX_egl_enable', 'XR_USE_PLATFORM_EGL', 'XR_USE_GRAPHICS_API_OPENGL'], ['XR_MNDX_egl_enable', 'XR_USE_PLATFORM_EGL', 'XR_USE_GRAPHICS_API_OPENGL'],
['XR_MNDX_ball_on_a_stick_controller'], ['XR_MNDX_ball_on_a_stick_controller'],
['XR_EXT_hand_tracking'] ['XR_EXT_hand_tracking'],
['XR_FB_display_refresh_rate'],
) )
ROOT = Path(__file__).resolve().parent.parent ROOT = Path(__file__).resolve().parent.parent

View file

@ -256,6 +256,17 @@
#define OXR_EXTENSION_SUPPORT_EXT_hand_tracking(_) #define OXR_EXTENSION_SUPPORT_EXT_hand_tracking(_)
#endif #endif
/*
* XR_FB_display_refresh_rate
*/
#if defined(XR_FB_display_refresh_rate)
#define OXR_HAVE_FB_display_refresh_rate
#define OXR_EXTENSION_SUPPORT_FB_display_refresh_rate(_) _(FB_display_refresh_rate, FB_DISPLAY_REFRESH_RATE)
#else
#define OXR_EXTENSION_SUPPORT_FB_display_refresh_rate(_)
#endif
// end of GENERATED per-extension defines - do not modify - used by scripts // end of GENERATED per-extension defines - do not modify - used by scripts
/*! /*!
@ -300,5 +311,6 @@
OXR_EXTENSION_SUPPORT_EXTX_overlay(_) \ OXR_EXTENSION_SUPPORT_EXTX_overlay(_) \
OXR_EXTENSION_SUPPORT_MNDX_egl_enable(_) \ OXR_EXTENSION_SUPPORT_MNDX_egl_enable(_) \
OXR_EXTENSION_SUPPORT_MNDX_ball_on_a_stick_controller(_) \ OXR_EXTENSION_SUPPORT_MNDX_ball_on_a_stick_controller(_) \
OXR_EXTENSION_SUPPORT_EXT_hand_tracking(_) OXR_EXTENSION_SUPPORT_EXT_hand_tracking(_) \
OXR_EXTENSION_SUPPORT_FB_display_refresh_rate(_)
// clang-format on // clang-format on