# OpenGLDepthStencilView::ClearDepth ```cpp void ClearDepth(float depth) ``` 清除深度缓冲区的深度值。 **参数:** - `depth` - 深度值(通常为 0.0 到 1.0) **示例:** ```cpp dsv.ClearDepth(1.0f); ``` ## 相关文档 - [OpenGLDepthStencilView](depth-stencil-view.md) - 返回类总览