diff --git a/scripts/generate_oxr_ext_support.py b/scripts/generate_oxr_ext_support.py index 290e5de57..7d259c656 100755 --- a/scripts/generate_oxr_ext_support.py +++ b/scripts/generate_oxr_ext_support.py @@ -30,7 +30,8 @@ EXTENSIONS = ( ['XR_EXTX_overlay'], ['XR_MNDX_egl_enable', 'XR_USE_PLATFORM_EGL', 'XR_USE_GRAPHICS_API_OPENGL'], ['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 diff --git a/src/xrt/state_trackers/oxr/oxr_extension_support.h b/src/xrt/state_trackers/oxr/oxr_extension_support.h index a34b14f8a..27d74154d 100644 --- a/src/xrt/state_trackers/oxr/oxr_extension_support.h +++ b/src/xrt/state_trackers/oxr/oxr_extension_support.h @@ -256,6 +256,17 @@ #define OXR_EXTENSION_SUPPORT_EXT_hand_tracking(_) #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 /*! @@ -300,5 +311,6 @@ OXR_EXTENSION_SUPPORT_EXTX_overlay(_) \ OXR_EXTENSION_SUPPORT_MNDX_egl_enable(_) \ 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