Files
XCSDD/docs/api/rhi/opengl/command-list/clear-depth-stencil.md

23 lines
415 B
Markdown
Raw Permalink Normal View History

# 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) - 返回类总览