Files
XCEngine/docs/api/rhi/opengl/depth-stencil-view/bind-framebuffer.md
2026-03-20 02:35:45 +08:00

23 lines
464 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# OpenGLDepthStencilView::BindFramebuffer
```cpp
static void BindFramebuffer(unsigned int framebuffer)
```
静态方法,将指定帧缓冲区绑定为当前深度模板帧缓冲区。
**参数:**
- `framebuffer` - 帧缓冲区 ID0 表示解除绑定)
**返回值:** `void`
**示例:**
```cpp
OpenGLDepthStencilView::BindFramebuffer(dsv.GetFramebuffer());
```
## 相关文档
- [OpenGLDepthStencilView](depth-stencil-view.md) - 返回类总览