DXGKDDI_SETINTERRUPTTARGETPRESENTID callback function (d3dkmddi.h)

The OS calls a display driver's DXGKDDI_SETINTERRUPTTARGETPRESENTID function to specify the target PresentId that should result in a Vsync interrupt being raised when the corresponding flip is completed.

Syntax

DXGKDDI_SETINTERRUPTTARGETPRESENTID DxgkddiSetinterrupttargetpresentid;

NTSTATUS DxgkddiSetinterrupttargetpresentid(
  IN_CONST_HANDLE hAdapter,
  IN_CONST_PDXGKARG_SETINTERRUPTTARGETPRESENTID pSetInterruptTargetPresentId
)
{...}

Parameters

hAdapter

[in] A handle to a context block that is associated with a display adapter. The display miniport driver previously provided this handle to the DirectX graphics kernel subsystem in the MiniportDeviceContext output parameter of the DxgkDdiAddDevice function.

pSetInterruptTargetPresentId

[in] Pointer to a DXGKARG_SETINTERRUPTTARGETPRESENTID structure containing the parameters for this function.

Return value

DXGKDDI_SETINTERRUPTTARGETPRESENTID returns STATUS_SUCCESS. The driver should always return a success code.

Remarks

DXGKDDI_SETINTERRUPTTARGETPRESENTID is called at the device interrupt level to synchronize with DXGKDDI_SETVIDPNSOURCEADDRESS and the VSync interrupt.

See Specifying Vsync interrupt behavior for more information.

Requirements

Requirement Value
Minimum supported client Windows 11 (WDDM 3.0)
Header d3dkmddi.h
IRQL DIRQL

See also

DXGKARG_SETINTERRUPTTARGETPRESENTID