# OpenGLDepthStencilView::ClearStencil ```cpp void ClearStencil(uint8_t stencil) ``` 清除模板缓冲区的模板值。 **参数:** - `stencil` - 模板值(0-255) **示例:** ```cpp dsv.ClearStencil(0); ``` ## 相关文档 - [OpenGLDepthStencilView](depth-stencil-view.md) - 返回类总览