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

@@ -0,0 +1,26 @@
# OpenGLSwapChain::GetNativeHandle
```cpp
void* GetNativeHandle() override;
```
获取 OpenGL 交换链的原生句柄。
**返回:** `nullptr`OpenGL 交换链不提供原生句柄)
**线程安全:**
**注意:**
- OpenGL 交换链基于 GLFW不直接提供 OpenGL 句柄
- 使用 `GetWindow()` 获取 GLFW 窗口指针
**示例:**
```cpp
void* handle = swapChain->GetNativeHandle();
```
## 相关文档
- [OpenGLSwapChain 总览](swap-chain.md) - 返回类总览
- [GetWindow](get-window.md) - 获取 GLFW 窗口