ID3D11DeviceContext::RSGetViewports Method
Get the array of viewports bound to the rasterizer stage
Syntax
void RSGetViewports(
[in, out] UINT *pNumViewports,
[out] D3D11_VIEWPORT *pViewports
);
Parameter
pNumViewports [in, out]
Typ: UINT*The input specifies the number of viewports (ranges from 0 to D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) in pViewports, the output contains the actual number of viewports returned. If pViewports is NULL, this will be filled with the number of viewports currently bound.
pViewports [out]
Typ: D3D11_VIEWPORT*An array of D3D11_VIEWPORT structures that are bound to the device. If the number of viewports (in pNumViewports) is greater than the actual number of viewports currently bound, then unused members of the array will contain 0. See the structure page for details about how the viewport size is dependent on the device feature level which has changed between Direct3D 11 and Direct3D 10.
Rückgabewert
Returns nothing.
Anforderungen
Header |
D3D11.h |
Bibliothek |
D3D11.lib |