D3DDDIARG_CHECKPRESENTDURATIONSUPPORT structure (d3dumddi.h)

Used in a call to the CheckPresentDurationSupport function to check details on hardware device support for seamlessly switching to a new monitor refresh rate.

Syntax

typedef struct D3DDDIARG_CHECKPRESENTDURATIONSUPPORT {
  [in]  D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId;
  [in]  UINT                           DesiredPresentDuration;
  [out] UINT                           ClosestSmallerDuration;
  [out] UINT                           ClosestLargerDuration;
} D3DDDIARG_CHECKPRESENTDURATIONSUPPORT;

Members

[in] VidPnSourceId

The zero-based video present network (VidPN) source identification number of the input for which the hardware support is queried.

[in] DesiredPresentDuration

The desired duration of a single present operation, in units of 100 nanoseconds.

[out] ClosestSmallerDuration

The smallest supported desired duration of a single present operation on the given VidPN source, in units of 100 nanoseconds. The value must be ≤ DesiredPresentDuration.

See Remarks for more limitations on this value.

[out] ClosestLargerDuration

The largest supported desired duration of a single present operation on the given VidPN source, in units of 100 nanoseconds. The value must be ≥ DesiredPresentDuration.

See Remarks for more limitations on this value.

Remarks

Either ClosestSmallerDuration or ClosestLargerDuration can be zero. However, if both are zero, the device cannot seamlessly switch to a new refresh rate.

If both ClosestSmallerDuration and ClosestLargerDuration have the same value as DesiredPresentDuration, the device can precisely match DesiredPresentDuration.

The difference between DesiredPresentDuration and ClosestSmallerDuration (or ClosestLargerDuration) represents the driver’s knowledge of the device capabilities, but there will be additional error during execution. The final accuracy of the device when using per-present durations should typically be the same as the accuracy using existing presentation modes.

Requirements

Requirement Value
Minimum supported client Windows 8.1,WDDM 1.3 and later
Minimum supported server Windows Server 2012 R2
Header d3dumddi.h (include D3d10umddi.h)

See also

CheckPresentDurationSupport