Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IDXGISwapChainMedia::CheckPresentDurationSupport method

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.

pClosestSmallerPresentDuration [out]

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.

pClosestLargerPresentDuration [out]

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

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

Header

Dxgi1_3.h

Library

Dxgi.lib

See also

IDXGISwapChainMedia

 

 

Show:
© 2017 Microsoft