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

21 lines
279 B
Markdown
Raw Normal View History

# OpenGLCommandList::ClearDepth
```cpp
void ClearDepth(float depth)
```
清除深度缓冲区。
**参数:**
- `depth` - 深度值 (0.0-1.0)
**示例:**
```cpp
commandList->ClearDepth(1.0f);
```
## 相关文档
- [OpenGLCommandList](command-list.md) - 返回类总览