IDXGISwapChainMedia::CheckPresentDurationSupport method (dxgi1_3.h)

Queries the graphics driver for a supported frame present duration corresponding to a custom refresh rate.

Syntax

HRESULT CheckPresentDurationSupport(
        UINT DesiredPresentDuration,
  [out] UINT *pClosestSmallerPresentDuration,
  [out] UINT *pClosestLargerPresentDuration
);

Parameters

DesiredPresentDuration

Indicates the frame duration to check. This value is the duration of one frame at the desired refresh rate, specified in hundreds of nanoseconds. For example, set this field to 167777 to check for 60 Hz refresh rate support.

[out] pClosestSmallerPresentDuration

A variable that will be set to the closest supported frame present duration that's smaller than the requested value, or zero if the device does not support any lower duration.

[out] pClosestLargerPresentDuration

A variable that will be set to the closest supported frame present duration that's larger than the requested value, or zero if the device does not support any higher duration.

Return value

This method returns S_OK on success, or a DXGI error code on failure.

Remarks

If the DXGI output adapter does not support custom refresh rates (for example, an external display) then the display driver will set upper and lower bounds to (0, 0).

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header dxgi1_3.h
Library Dxgi.lib

See also

IDXGISwapChainMedia