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