Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID3D10Device::RSSetScissorRects method

Bind an array of scissor rectangles to the rasterizer stage.

Syntax


void RSSetScissorRects(
  [in]       UINT       NumRects,
  [inconst D3D10_RECT *pRects
);

Parameters

NumRects [in]

Type: UINT

Number of scissor rectangles to bind.

pRects [in]

Type: const D3D10_RECT*

An array of scissor rectangles (see D3D10_RECT).

Return value

Returns nothing.

Remarks

The scissor rectangles will only be used if ScissorEnable is set to true in the rasterizer state (see D3D10_RASTERIZER_DESC).

Which scissor rectangle to use is determined by the SV_ViewportArrayIndex semantic output by a geometry shader (see shader semantic syntax). If a geometry shader does not make use of the SV_ViewportArrayIndex semantic then Direct3D will use the first scissor rectangle in the array.

Each scissor rectangle in the array corresponds to a viewport in an array of viewports (see ID3D10Device::RSSetViewports).

Requirements

Header

D3D10.h

Library

D3D10.lib

See also

ID3D10Device Interface

 

 

Show:
© 2017 Microsoft