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,11 +4,19 @@
virtual void ClearRenderTarget(void* renderTarget, const float color[4]) = 0;
```
清除渲染目标。
清除指定的渲染目标视图。用给定的颜色值填充整个渲染目标。
**参数:**
- `renderTarget` - 渲染目标指针
- `color` - 清除颜色 [r, g, b, a]
- `renderTarget` - 渲染目标视图指针
- `color` - 4 元素浮点数数组,表示 RGBA 清除颜色(范围 0.0-1.0
**返回:** `void`
**异常:**
**线程安全:**
**复杂度:** O(1)
**示例:**
@@ -20,3 +28,5 @@ cmdList->ClearRenderTarget(renderTarget, color);
## 相关文档
- [RHICommandList 总览](command-list.md) - 返回类总览
- [Clear](clear.md) - 清除多个渲染目标
- [SetRenderTargets](set-render-targets.md) - 设置渲染目标