Files
XCSDD/docs/api/rhi/opengl/depth-stencil-view/get-texture.md

20 lines
308 B
Markdown
Raw Normal View History

# OpenGLDepthStencilView::GetTexture
```cpp
unsigned int GetTexture() const
```
获取关联的纹理对象 ID。
**返回:** `unsigned int` - 纹理 ID
**示例:**
```cpp
unsigned int tex = dsv.GetTexture();
```
## 相关文档
- [OpenGLDepthStencilView](depth-stencil-view.md) - 返回类总览