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