Setting Scissor Rectangle

A DirectX 9.0 version driver must support setting a rectangular clipping region, that is, a scissor rectangle. After this scissor rectangle is set, rendering is restricted to just the portion of the render target that is specified by the scissor rectangle. To set a scissor rectangle, the driver must process the D3DDP2OP_SETSCISSORRECT operation code in its D3dDrawPrimitives2 function. A RECT structure that specifies the rectangular clipping region follows the operation code in the command stream.