ID3D11DeviceContext::RSGetScissorRects Method

Get the array of scissor rectangles bound to the rasterizer stage.

Syntax

public:
void RSGetScissorRects(
         UINT *pNumRects,
         D3D11_RECT *pRects
)  

Parameters

pNumRects
Type: UINT *

[in, out] The number of scissor rectangles (ranges between 0 and D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) bound; set pRects to NULL to use pNumRects to see how many rectangles would be returned.

pRects
Type: D3D11_RECT *

[out, optional] An array of scissor rectangles (see D3D11_RECT). If pNumRects is greater than the number of scissor rects currently bound, then unused members of the array will contain 0.

Return value

None.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).

See also

ID3D11DeviceContext

ID3D11DeviceContext Members