| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
OpenXR.Extensions.XR_FB_display_refresh_rate
Description
Name
XR_FB_display_refresh_rate - instance extension
Specification
See XR_FB_display_refresh_rate in the main specification for complete information.
Registered Extension Number
102
Revision
1
Extension and Version Dependencies
- Requires OpenXR 1.0
See Also
EventDataDisplayRefreshRateChangedFB,
enumerateDisplayRefreshRatesFB, getDisplayRefreshRateFB,
requestDisplayRefreshRateFB
Document Notes
For more information, see the OpenXR Specification
This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.
Synopsis
- enumerateDisplayRefreshRatesFB :: forall io. MonadIO io => Session -> io (Result, "displayRefreshRates" ::: Vector Float)
- getDisplayRefreshRateFB :: forall io. MonadIO io => Session -> io (Result, "displayRefreshRate" ::: Float)
- requestDisplayRefreshRateFB :: forall io. MonadIO io => Session -> ("displayRefreshRate" ::: Float) -> io Result
- data EventDataDisplayRefreshRateChangedFB = EventDataDisplayRefreshRateChangedFB {}
- type FB_display_refresh_rate_SPEC_VERSION = 1
- pattern FB_display_refresh_rate_SPEC_VERSION :: forall a. Integral a => a
- type FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME = "XR_FB_display_refresh_rate"
- pattern FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
Documentation
enumerateDisplayRefreshRatesFB :: forall io. MonadIO io => Session -> io (Result, "displayRefreshRates" ::: Vector Float) Source #
xrEnumerateDisplayRefreshRatesFB - Enumerates display refresh rates
Parameter Descriptions
sessionis the session that enumerates the supported display refresh rates.
displayRefreshRateCapacityInputis the capacity of thedisplayRefreshRates, or 0 to retrieve the required capacity.displayRefreshRateCountOutputis a pointer to the count offloatdisplayRefreshRateswritten, or a pointer to the required capacity in the case thatdisplayRefreshRateCapacityInputis0.displayRefreshRatesis a pointer to an array offloatdisplay refresh rates, but can beNULLifdisplayRefreshRateCapacityInputis0.- See
Buffer Size Parameters
chapter for a detailed description of retrieving the required
displayRefreshRatessize.
Description
enumerateDisplayRefreshRatesFB enumerates the display refresh rates
supported by the current session. Display refresh rates must be in
order from lowest to highest supported display refresh rates. Runtimes
must always return identical buffer contents from this enumeration for
the lifetime of the session.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to calling
enumerateDisplayRefreshRatesFB
-
sessionmust be a validSessionhandle -
displayRefreshRateCountOutputmust be a pointer to auint32_tvalue -
If
displayRefreshRateCapacityInputis not0,displayRefreshRatesmust be a pointer to an array ofdisplayRefreshRateCapacityInputfloatvalues
Return Codes
See Also
Session, getDisplayRefreshRateFB,
requestDisplayRefreshRateFB
getDisplayRefreshRateFB Source #
Arguments
| :: forall io. MonadIO io | |
| => Session |
|
| -> io (Result, "displayRefreshRate" ::: Float) |
xrGetDisplayRefreshRateFB - Get the current display refresh rate
Parameter Descriptions
Description
getDisplayRefreshRateFB retrieves the current display refresh rate.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to calling
getDisplayRefreshRateFB
-
sessionmust be a validSessionhandle -
displayRefreshRatemust be a pointer to afloatvalue
Return Codes
See Also
Session, enumerateDisplayRefreshRatesFB,
requestDisplayRefreshRateFB
requestDisplayRefreshRateFB Source #
Arguments
| :: forall io. MonadIO io | |
| => Session |
|
| -> ("displayRefreshRate" ::: Float) |
|
| -> io Result |
xrRequestDisplayRefreshRateFB - Request a display refresh rate
Parameter Descriptions
Description
requestDisplayRefreshRateFB provides a mechanism for an application to
request the system to dynamically change the display refresh rate to the
application preferred value. The runtime must return
ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB
if displayRefreshRate is not either 0.0f or one of the values
enumerated by enumerateDisplayRefreshRatesFB. A display refresh rate
of 0.0f indicates the application has no preference.
Note that this is only a request and does not guarantee the system will switch to the requested display refresh rate.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to calling
requestDisplayRefreshRateFB
-
sessionmust be a validSessionhandle
Return Codes
See Also
Session, enumerateDisplayRefreshRatesFB,
getDisplayRefreshRateFB
data EventDataDisplayRefreshRateChangedFB Source #
XrEventDataDisplayRefreshRateChangedFB - Event representing display refresh rate change
Valid Usage (Implicit)
-
The @@ extension must be enabled prior to using
EventDataDisplayRefreshRateChangedFB
-
typemust beTYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB -
nextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
Constructors
| EventDataDisplayRefreshRateChangedFB | |
Fields
| |
Instances
type FB_display_refresh_rate_SPEC_VERSION = 1 Source #
pattern FB_display_refresh_rate_SPEC_VERSION :: forall a. Integral a => a Source #
type FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME = "XR_FB_display_refresh_rate" Source #
pattern FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #