docs: update RHI API docs

This commit is contained in:
2026-03-20 02:35:45 +08:00
parent ea756c0177
commit 070b444f8f
501 changed files with 13493 additions and 2022 deletions

View File

@@ -1,17 +1,28 @@
# OpenGLRenderTargetView::Initialize
```cpp
bool Initialize(unsigned int texture, int width, int height);
bool Initialize(unsigned int texture, const OpenGLRenderTargetViewDesc& desc);
bool Initialize(unsigned int texture, int mipLevel = 0);
```
初始化渲染目标视图。
**参数:**
**重载 1 参数:**
- `texture` - OpenGL 纹理 ID
- `width` - 宽度
- `height` - 高度
- `desc` - 渲染目标视图描述
**返回:** 成功返回 true
**重载 2 参数:**
- `texture` - OpenGL 纹理 ID
- `mipLevel` - mipmap 级别(默认为 0
**返回:** `bool` - 成功返回 true失败返回 false
**示例:**
```cpp
OpenGLRenderTargetView rtv;
rtv.Initialize(texture, 0);
```
## 相关文档