XRDisplayRefreshRateFeature
This OpenXRInteractionFeature provides access to the XR_FB_display_refresh_rate extension.
Summary
Inheritance
Inherits from:OpenXRFeature
Public attributes |
|
---|---|
ExtensionString = "XR_FB_display_refresh_rate"
|
const string
The OpenXR Extension string.
|
FeatureId = "com.google.xr.extensions.display_refresh_rate"
|
const string
The feature ID string.
|
UiName = "Display Refresh Rate"
|
const string
The UI name shows on the XR Plug-in Management panel, to help users understand validation errors and expected fixes.
|
Public static attributes |
|
---|---|
IsExtensionEnabled => _extensionEnabled
|
bool
Gets if the required OpenXR extension is enabled.
|
Public static functions |
|
---|---|
GetDisplayRefreshRateInfo(out XRDisplayRefreshRateInfo info)
|
bool
Gets the refresh rates supported by the device and the device's current refresh rate.
|
RequestDisplayRefreshRate(float displayRefreshRate)
|
void
Request the system to dynamically change the display refresh rate.
|
Public attributes
ExtensionString
const string ExtensionString = "XR_FB_display_refresh_rate"
The OpenXR Extension string.
Used to check if this extension is available or enabled.
FeatureId
const string FeatureId = "com.google.xr.extensions.display_refresh_rate"
The feature ID string.
UiName
const string UiName = "Display Refresh Rate"
The UI name shows on the XR Plug-in Management panel, to help users understand validation errors and expected fixes.
Public static attributes
IsExtensionEnabled
bool IsExtensionEnabled => _extensionEnabled
Gets if the required OpenXR extension is enabled.
When OpenXR runtime is waiting, it returns null
. Otherwise, it indicates whether the XR_FB_display_refresh_rate extension is available on the current device.
Public static functions
GetDisplayRefreshRateInfo
bool GetDisplayRefreshRateInfo( out XRDisplayRefreshRateInfo info )
Gets the refresh rates supported by the device and the device's current refresh rate.
Details | |||
---|---|---|---|
Parameters |
|
RequestDisplayRefreshRate
void RequestDisplayRefreshRate( float displayRefreshRate )
Request the system to dynamically change the display refresh rate.
Note that this is only a request and does not guarantee the system will switch to the requested display refresh rate.
Details | |||
---|---|---|---|
Parameters |
|