23 lines
431 B
Markdown
23 lines
431 B
Markdown
|
|
# RHICommandList::ClearDepthStencil
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
virtual void ClearDepthStencil(void* depthStencil, float depth, uint8_t stencil) = 0;
|
||
|
|
```
|
||
|
|
|
||
|
|
清除深度模板缓冲区。
|
||
|
|
|
||
|
|
**参数:**
|
||
|
|
- `depthStencil` - 深度模板缓冲区指针
|
||
|
|
- `depth` - 深度值
|
||
|
|
- `stencil` - 模板值
|
||
|
|
|
||
|
|
**示例:**
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
cmdList->ClearDepthStencil(depthStencil, 1.0f, 0);
|
||
|
|
```
|
||
|
|
|
||
|
|
## 相关文档
|
||
|
|
|
||
|
|
- [RHICommandList 总览](command-list.md) - 返回类总览
|