openxr-0.1: Bindings to the OpenXR API
Safe HaskellNone
LanguageHaskell2010

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

Documentation

enumerateDisplayRefreshRatesFB :: forall io. MonadIO io => Session -> io (Result, "displayRefreshRates" ::: Vector Float) Source #

xrEnumerateDisplayRefreshRatesFB - Enumerates display refresh rates

Parameter Descriptions

  • session is the session that enumerates the supported display refresh rates.
  • displayRefreshRateCapacityInput is the capacity of the displayRefreshRates, or 0 to retrieve the required capacity.
  • displayRefreshRateCountOutput is a pointer to the count of float displayRefreshRates written, or a pointer to the required capacity in the case that displayRefreshRateCapacityInput is 0.
  • displayRefreshRates is a pointer to an array of float display refresh rates, but can be NULL if displayRefreshRateCapacityInput is 0.
  • See Buffer Size Parameters chapter for a detailed description of retrieving the required displayRefreshRates size.

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)

  • session must be a valid Session handle
  • displayRefreshRateCountOutput must be a pointer to a uint32_t value
  • If displayRefreshRateCapacityInput is not 0, displayRefreshRates must be a pointer to an array of displayRefreshRateCapacityInput float values

Return Codes

Success
Failure

See Also

Session, getDisplayRefreshRateFB, requestDisplayRefreshRateFB

getDisplayRefreshRateFB Source #

Arguments

:: forall io. MonadIO io 
=> Session

session is the Session to query.

-> io (Result, "displayRefreshRate" ::: Float) 

xrGetDisplayRefreshRateFB - Get the current display refresh rate

Parameter Descriptions

Description

getDisplayRefreshRateFB retrieves the current display refresh rate.

Valid Usage (Implicit)

  • session must be a valid Session handle
  • displayRefreshRate must be a pointer to a float value

Return Codes

Success
Failure

See Also

Session, enumerateDisplayRefreshRatesFB, requestDisplayRefreshRateFB

requestDisplayRefreshRateFB Source #

Arguments

:: forall io. MonadIO io 
=> Session

session is a valid Session handle.

-> ("displayRefreshRate" ::: Float)

displayRefreshRate is 0.0f or a supported display refresh rate. Supported display refresh rates are indicated by enumerateDisplayRefreshRatesFB.

-> 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)

  • session must be a valid Session handle

Return Codes

Success
Failure

See Also

Session, enumerateDisplayRefreshRatesFB, getDisplayRefreshRateFB

data EventDataDisplayRefreshRateChangedFB Source #

XrEventDataDisplayRefreshRateChangedFB - Event representing display refresh rate change

Valid Usage (Implicit)

See Also

StructureType, getDisplayRefreshRateFB

Constructors

EventDataDisplayRefreshRateChangedFB 

Fields

Instances

Instances details
Eq EventDataDisplayRefreshRateChangedFB Source # 
Instance details

Defined in OpenXR.Extensions.XR_FB_display_refresh_rate

Show EventDataDisplayRefreshRateChangedFB Source # 
Instance details

Defined in OpenXR.Extensions.XR_FB_display_refresh_rate

Storable EventDataDisplayRefreshRateChangedFB Source # 
Instance details

Defined in OpenXR.Extensions.XR_FB_display_refresh_rate

Zero EventDataDisplayRefreshRateChangedFB Source # 
Instance details

Defined in OpenXR.Extensions.XR_FB_display_refresh_rate

ToCStruct EventDataDisplayRefreshRateChangedFB Source # 
Instance details

Defined in OpenXR.Extensions.XR_FB_display_refresh_rate

FromCStruct EventDataDisplayRefreshRateChangedFB Source # 
Instance details

Defined in OpenXR.Extensions.XR_FB_display_refresh_rate

IsEventData EventDataDisplayRefreshRateChangedFB Source # 
Instance details

Defined in OpenXR.Extensions.XR_FB_display_refresh_rate

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 #