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 theSV_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:Requirements
Header: d3d12_xs.h or d3d12_x.hLibrary: d3d12_xs.lib or d3d12_x.lib
Supported Platforms: XBOX Series consoles and XBOX One family
