IDirect3DDevice9::GetRasterStatus method (d3d9.h)

Returns information describing the raster of the monitor on which the swap chain is presented.

Syntax

HRESULT GetRasterStatus(
  [in]  UINT             iSwapChain,
  [out] D3DRASTER_STATUS *pRasterStatus
);

Parameters

[in] iSwapChain

Type: UINT

An unsigned integer specifying the swap chain.

[out] pRasterStatus

Type: D3DRASTER_STATUS*

Pointer to a D3DRASTER_STATUS structure filled with information about the position or other status of the raster on the monitor driven by this adapter.

Return value

Type: HRESULT

If the method succeeds, the return value is D3D_OK. D3DERR_INVALIDCALL is returned if pRasterStatus is invalid or if the device does not support reading the current scan line. To determine if the device supports reading the scan line, check for the D3DCAPS_READ_SCANLINE flag in the Caps member of D3DCAPS9.

Requirements

   
Target Platform Windows
Header d3d9.h (include D3D9.h)
Library D3D9.lib

See also

D3DRASTER_STATUS

IDirect3DDevice9