docs: Fix RHI module documentation discrepancies

Fixed incorrect links in RHI documentation:
- Fixed OpenGL swap-chain docs with wrong references to threading/containers
- Fixed OpenGL texture docs with incorrect buffer/ texture links
- Fixed OpenGL vertex-array docs with wrong threading links
- Fixed OpenGL sampler docs with wrong threading links
- Fixed OpenGL device docs with incorrect swap-chain links
- Fixed fence docs with incorrect command-queue links
- Fixed command-list docs with missing shutdown link
- Fixed get-framebuffer-size.md title mismatch

Added missing documentation:
- Created fence/wait.md
- Created command-list/shutdown.md
- Created swap-chain/resize.md
- Created OpenGL sampler initialize.md, bind.md, unbind.md
This commit is contained in:
2026-03-19 01:07:49 +08:00
parent 452ccd4f8f
commit 2141534995
14 changed files with 156 additions and 21 deletions

View File

@@ -0,0 +1,27 @@
# RHISwapChain::Resize
```cpp
virtual void Resize(uint32_t width, uint32_t height) = 0;
```
调整交换链大小。
**参数:**
- `width` - 新的宽度
- `height` - 新的高度
**复杂度:** O(n) - 取决于缓冲区数量
**注意:**
- 调整大小会导致所有后台缓冲区重建
- 应在渲染循环外调用
**示例:**
```cpp
swapChain->Resize(1920, 1080);
```
## 相关文档
- [RHISwapChain 总览](swap-chain.md) - 返回类总览