# RHICommandList::SetScissorRect ```cpp virtual void SetScissorRect(const Rect& rect) = 0; ``` 设置裁剪矩形。 **参数:** - `rect` - 裁剪矩形结构体 **示例:** ```cpp Rect rect; rect.left = 0; rect.top = 0; rect.right = 640; rect.bottom = 480; cmdList->SetScissorRect(rect); ``` ## 相关文档 - [RHICommandList 总览](command-list.md) - 返回类总览