PFND3DDDI_SETVIEWPORT callback function

The SetViewport function informs guard-band-aware drivers of the view-clipping rectangle.

Syntax

PFND3DDDI_SETVIEWPORT Pfnd3dddiSetviewport;

HRESULT Pfnd3dddiSetviewport(
  HANDLE hDevice,
  const D3DDDIARG_VIEWPORTINFO *Arg2
)
{...}

Parameters

hDevice

A handle to the display device (graphics context).

Arg2

pData [in]

A pointer to a D3DDDIARG_VIEWPORTINFO structure that describes the view-clipping rectangle.

Return Value

SetViewport returns S_OK or an appropriate error result if the driver is not successfully informed about the view-clipping rectangle.

Requirements

   
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dumddi.h (include D3dumddi.h)

See Also

D3DDDIARG_VIEWPORTINFO

D3DDDI_DEVICEFUNCS