# OpenGLDepthStencilView::Initialize ```cpp bool Initialize(unsigned int texture, int width, int height); ``` 初始化深度模板视图。 **参数:** - `texture` - OpenGL 纹理 ID - `width` - 宽度 - `height` - 高度 **返回:** 成功返回 true ## 相关文档 - [OpenGLDepthStencilView 总览](depth-stencil-view.md) - 返回类总览