Skip to content

Latest commit

 

History

History
86 lines (70 loc) · 3.96 KB

nf-d3d11-id3d11devicecontext-rsgetviewports.md

File metadata and controls

86 lines (70 loc) · 3.96 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:d3d11.ID3D11DeviceContext.RSGetViewports
ID3D11DeviceContext::RSGetViewports (d3d11.h)
Gets the array of viewports bound to the rasterizer stage.
19831c51-f6c4-f65f-6ada-c90fa97f0a32
ID3D11DeviceContext interface [Direct3D 11]
RSGetViewports method
ID3D11DeviceContext.RSGetViewports
ID3D11DeviceContext::RSGetViewports
RSGetViewports
RSGetViewports method [Direct3D 11]
RSGetViewports method [Direct3D 11]
ID3D11DeviceContext interface
d3d11/ID3D11DeviceContext::RSGetViewports
direct3d11.id3d11devicecontext_rsgetviewports
direct3d11\id3d11devicecontext_rsgetviewports.htm
direct3d11
9932182f-8e62-41fe-9004-7fb0b591630f
12/05/2018
19831c51-f6c4-f65f-6ada-c90fa97f0a32, ID3D11DeviceContext interface [Direct3D 11],RSGetViewports method, ID3D11DeviceContext.RSGetViewports, ID3D11DeviceContext::RSGetViewports, RSGetViewports, RSGetViewports method [Direct3D 11], RSGetViewports method [Direct3D 11],ID3D11DeviceContext interface, d3d11/ID3D11DeviceContext::RSGetViewports, direct3d11.id3d11devicecontext_rsgetviewports
d3d11.h
Windows
D3D11.lib
Windows
19H1
ID3D11DeviceContext::RSGetViewports
d3d11/ID3D11DeviceContext::RSGetViewports
c++
APIRef
kbSyntax
COM
D3D11.lib
D3D11.dll
ID3D11DeviceContext.RSGetViewports

ID3D11DeviceContext::RSGetViewports

-description

Gets the array of viewports bound to the rasterizer stage.

-parameters

-param pNumViewports [in, out]

Type: UINT*

A pointer to a variable that, on input, specifies the number of viewports (ranges from 0 to D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) in the pViewports array; on output, the variable contains the actual number of viewports that are bound to the rasterizer stage. If pViewports is NULL, RSGetViewports fills the variable with the number of viewports currently bound.

Note  In some versions of the Windows SDK, a debug device will raise an exception if the input value in the variable to which pNumViewports points is greater than D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE even if pViewports is NULL. The regular runtime ignores the value in the variable to which pNumViewports points when pViewports is NULL. This behavior of a debug device might be corrected in a future release of the Windows SDK.
 

-param pViewports [out, optional]

Type: D3D11_VIEWPORT*

An array of D3D11_VIEWPORT structures for the viewports that are bound to the rasterizer stage. If the number of viewports (in the variable to which pNumViewports points) is greater than the actual number of viewports currently bound, unused elements of the array contain 0. For info about how the viewport size depends on the device feature level, which has changed between Direct3D 11 and Direct3D 10, see D3D11_VIEWPORT.

-remarks

Windows Phone 8: This API is supported.

-see-also

ID3D11DeviceContext