On platforms which support dynamically adjusting the display refresh rate, application developers may request a specific display refresh rate in order to improve the overall user experience, examples include:
This extension allows:
In order to enable the functionality of this extension, the application must pass the name of the extension into CreateInstance via the XrInstanceCreateInfo::enabledExtensionNames parameter as indicated in the extensions section.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | XR_ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB
Extends |
| public static final String | XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME
The extension name. |
| public static final int | XR_FB_display_refresh_rate_SPEC_VERSION
The extension specification version. |
| public static final int | XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB
Extends |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | nxrEnumerateDisplayRefreshRatesFB(XrSession session, int
the capacity of the displayRefreshRateCapacityInput, long displayRefreshRateCountOutput, long displayRefreshRates)displayRefreshRates, or 0 to retrieve the required capacity.Unsafe version of: |
| public static int | nxrGetDisplayRefreshRateFB(XrSession session, long displayRefreshRate)
Unsafe version of: |
| public static int | xrEnumerateDisplayRefreshRatesFB(XrSession
the session that enumerates the supported display refresh rates. session, IntBuffer a pointer to the count of displayRefreshRateCountOutput, FloatBuffer float displayRefreshRates written, or a pointer to the required capacity in the case that displayRefreshRateCapacityInput is insufficient.a pointer to an array of displayRefreshRates)float display refresh rates, but can be NULL if displayRefreshRateCapacityInput is 0.Enumerates display refresh rates. |
| public static int | xrGetDisplayRefreshRateFB(XrSession
the session, FloatBuffer XrSession to query.a pointer to a float into which the current display refresh rate will be placed. displayRefreshRate)Get the current display refresh rate. |
| public static int | xrRequestDisplayRefreshRateFB(XrSession
a valid session, float XrSession handle.0.0f or a supported display refresh rate. Supported display refresh rates are indicated by EnumerateDisplayRefreshRatesFB.Request a display refresh rate. |
| XR_ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB | back to summary |
|---|---|
| public static final int XR_ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB Extends | |
| XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME | back to summary |
|---|---|
| public static final String XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME The extension name. | |
| XR_FB_display_refresh_rate_SPEC_VERSION | back to summary |
|---|---|
| public static final int XR_FB_display_refresh_rate_SPEC_VERSION The extension specification version. | |
| XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB | back to summary |
|---|---|
| public static final int XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB Extends | |
| FBDisplayRefreshRate | back to summary |
|---|---|
| protected FBDisplayRefreshRate() | |
| nxrEnumerateDisplayRefreshRatesFB | back to summary |
|---|---|
| public static int nxrEnumerateDisplayRefreshRatesFB(XrSession session, int displayRefreshRateCapacityInput, long displayRefreshRateCountOutput, long displayRefreshRates) Unsafe version of:
| |
| nxrGetDisplayRefreshRateFB | back to summary |
|---|---|
| public static int nxrGetDisplayRefreshRateFB(XrSession session, long displayRefreshRate) Unsafe version of: | |
| xrEnumerateDisplayRefreshRatesFB | back to summary |
|---|---|
| public static int xrEnumerateDisplayRefreshRatesFB(XrSession session, IntBuffer displayRefreshRateCountOutput, FloatBuffer displayRefreshRates) Enumerates display refresh rates. C SpecificationThe
Description
Valid Usage (Implicit)
Return Codes
See Also
| |
| xrGetDisplayRefreshRateFB | back to summary |
|---|---|
| public static int xrGetDisplayRefreshRateFB(XrSession session, FloatBuffer displayRefreshRate) Get the current display refresh rate. C SpecificationThe
Description
Valid Usage (Implicit)
Return Codes
See Also
| |
| xrRequestDisplayRefreshRateFB | back to summary |
|---|---|
| public static int xrRequestDisplayRefreshRateFB(XrSession session, float displayRefreshRate) Request a display refresh rate. C SpecificationThe
Description
Note that this is only a request and does not guarantee the system will switch to the requested display refresh rate. Valid Usage (Implicit)
Return Codes
See Also
| |