docs: update RHI API docs
This commit is contained in:
@@ -4,12 +4,20 @@
|
||||
virtual void ClearDepthStencil(void* depthStencil, float depth, uint8_t stencil) = 0;
|
||||
```
|
||||
|
||||
清除深度模板缓冲区。
|
||||
清除深度模板视图。可同时清除深度值和模板值。
|
||||
|
||||
**参数:**
|
||||
- `depthStencil` - 深度模板缓冲区指针
|
||||
- `depth` - 深度值
|
||||
- `stencil` - 模板值
|
||||
- `depthStencil` - 深度模板视图指针
|
||||
- `depth` - 清除深度值(通常为 1.0)
|
||||
- `stencil` - 清除模板值(范围 0-255)
|
||||
|
||||
**返回:** `void`
|
||||
|
||||
**异常:** 无
|
||||
|
||||
**线程安全:** ❌
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
@@ -20,3 +28,5 @@ cmdList->ClearDepthStencil(depthStencil, 1.0f, 0);
|
||||
## 相关文档
|
||||
|
||||
- [RHICommandList 总览](command-list.md) - 返回类总览
|
||||
- [Clear](clear.md) - 清除多个渲染目标
|
||||
- [SetRenderTargets](set-render-targets.md) - 设置渲染目标
|
||||
Reference in New Issue
Block a user