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::GetCurrentBackBufferIndex
```cpp
uint32_t GetCurrentBackBufferIndex() const override;
```
获取当前后台缓冲区的索引。
**返回:** 始终返回 0OpenGL 交换链使用单一帧缓冲)
**线程安全:**
**注意:**
- OpenGL 交换链实现返回 0因为使用单一帧缓冲而非多缓冲
- 该方法继承自 `RHISwapChain` 抽象接口
**示例:**
```cpp
uint32_t index = swapChain->GetCurrentBackBufferIndex();
```
## 相关文档
- [OpenGLSwapChain 总览](swap-chain.md)
- [GetCurrentBackBuffer](get-current-back-buffer.md) - 获取当前后台缓冲区