docs: update RHI API docs
This commit is contained in:
@@ -4,12 +4,20 @@
|
||||
virtual void SetRenderTargets(uint32_t count, void** renderTargets, void* depthStencil = nullptr) = 0;
|
||||
```
|
||||
|
||||
设置渲染目标和深度模板缓冲区。
|
||||
设置渲染目标和深度模板缓冲区。指定着色器将输出到的颜色缓冲区和深度模板缓冲区。
|
||||
|
||||
**参数:**
|
||||
- `count` - 渲染目标数量
|
||||
- `renderTargets` - 渲染目标数组
|
||||
- `depthStencil` - 深度模板缓冲区(可选)
|
||||
- `count` - 渲染目标数量(最多 8 个)
|
||||
- `renderTargets` - 渲染目标数组指针
|
||||
- `depthStencil` - 深度模板缓冲区指针(可选,默认为 nullptr)
|
||||
|
||||
**返回:** `void`
|
||||
|
||||
**异常:** 无
|
||||
|
||||
**线程安全:** ❌
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
@@ -21,3 +29,5 @@ cmdList->SetRenderTargets(1, targets, depthStencil);
|
||||
## 相关文档
|
||||
|
||||
- [RHICommandList 总览](command-list.md) - 返回类总览
|
||||
- [ClearRenderTarget](clear-render-target.md) - 清除渲染目标
|
||||
- [ClearDepthStencil](clear-depth-stencil.md) - 清除深度模板
|
||||
Reference in New Issue
Block a user