Files
XCEngine/docs/api/rhi/opengl/depth-stencil-view/get-mip-level.md

20 lines
319 B
Markdown
Raw Normal View History

# OpenGLDepthStencilView::GetMipLevel
```cpp
int GetMipLevel() const
```
2026-03-20 02:35:45 +08:00
获取此深度模板视图所绑定的 mipmap 级别。
2026-03-20 02:35:45 +08:00
**返回:** `int` - mip 级别索引
**示例:**
```cpp
int mipLevel = dsv.GetMipLevel();
```
## 相关文档
- [OpenGLDepthStencilView](depth-stencil-view.md) - 返回类总览