docs: update RHI API docs
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# OpenGLSwapChain::GetCurrentBackBufferIndex
|
||||
|
||||
```cpp
|
||||
uint32_t GetCurrentBackBufferIndex() const override;
|
||||
```
|
||||
|
||||
获取当前后台缓冲区的索引。
|
||||
|
||||
**返回:** 始终返回 0(OpenGL 交换链使用单一帧缓冲)
|
||||
|
||||
**线程安全:** ❌
|
||||
|
||||
**注意:**
|
||||
- OpenGL 交换链实现返回 0,因为使用单一帧缓冲而非多缓冲
|
||||
- 该方法继承自 `RHISwapChain` 抽象接口
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
uint32_t index = swapChain->GetCurrentBackBufferIndex();
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [OpenGLSwapChain 总览](swap-chain.md)
|
||||
- [GetCurrentBackBuffer](get-current-back-buffer.md) - 获取当前后台缓冲区
|
||||
Reference in New Issue
Block a user