// d3dkmddi.h
DXGKDDI_SETINTERRUPTTARGETPRESENTID DxgkddiSetinterrupttargetpresentid;
NTSTATUS DxgkddiSetinterrupttargetpresentid(
IN_CONST_HANDLE hAdapter,
IN_CONST_PDXGKARG_SETINTERRUPTTARGETPRESENTID pSetInterruptTargetPresentId
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
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.
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.
DXGKDDI_SETINTERRUPTTARGETPRESENTID returns STATUS_SUCCESS. The driver should always return a success code.
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.
DXGKARG_SETINTERRUPTTARGETPRESENTID