docs: update RHI API docs
This commit is contained in:
@@ -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) - 设置渲染目标
|
||||
Reference in New Issue
Block a user