ID3D10Device::RSGetViewports method (d3d10.h)

Get the array of viewports bound to the rasterizer stage

Syntax

void RSGetViewports(
  [in, out] UINT           *NumViewports,
  [out]     D3D10_VIEWPORT *pViewports
);

Parameters

[in, out] NumViewports

Type: UINT*

Number of viewports in pViewports.
If pViewports is NULL, this will be filled with the number of viewports currently bound.

[out] pViewports

Type: D3D10_VIEWPORT*

An array of viewports (see D3D10_VIEWPORT) to be filled with information from the device. If NumViewports is greater than the actual number of viewports currently bound, then unused members of the array will contain 0.

Return value

None

Requirements

Requirement Value
Target Platform Windows
Header d3d10.h
Library D3D10.lib

See also

ID3D10Device Interface