Skip to main content
Binds an array of scissor rectangles to the rasterizer stage.

Syntax

Parameters

NumRects [in]
Type: UINT
The number of scissor rectangles to bind. pRects [in]
Type: const D3D12_RECT *
An array of scissor rectangles.

Return value

Type: void None.

Remarks

All scissor rectangles must be set atomically as one operation. Any scissor rectangles not defined by the call are disabled. 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 RSSetViewports).

Examples

The D3D12HelloTriangle sample uses ID3D12GraphicsCommandList::RSSetScissorRects as follows:
See Example Code in the D3D12 Reference.

Requirements

Header: d3d12_xs.h or d3d12_x.h
Library: d3d12_xs.lib or d3d12_x.lib
Supported Platforms: XBOX Series consoles and XBOX One family

See Also

ID3D12GraphicsCommandList
Last modified on August 20, 2026