docs: update RHI API docs

This commit is contained in:
2026-03-20 02:35:45 +08:00
parent ea756c0177
commit 070b444f8f
501 changed files with 13493 additions and 2022 deletions

View File

@@ -4,10 +4,18 @@
virtual void SetViewport(const Viewport& viewport) = 0;
```
设置视口
设置渲染区域视口。视口定义了渲染输出到目标区域的映射变换
**参数:**
- `viewport` - 视口结构体
- `viewport` - 视口结构体(包含 topLeftX、topLeftY、width、height、minDepth、maxDepth
**返回:** `void`
**异常:**
**线程安全:**
**复杂度:** O(1)
**示例:**
@@ -25,3 +33,5 @@ cmdList->SetViewport(vp);
## 相关文档
- [RHICommandList 总览](command-list.md) - 返回类总览
- [SetViewports](set-viewports.md) - 设置多个视口
- [SetScissorRect](set-scissor-rect.md) - 设置裁剪矩形