fix: improve doc link navigation and tree display
- Fix link resolution with proper relative/absolute path handling - Improve link styling with underline decoration - Hide leaf nodes from tree, only show directories - Fix log file path for packaged app
This commit is contained in:
89
docs/api/rhi/swap-chain/methods.md
Normal file
89
docs/api/rhi/swap-chain/methods.md
Normal file
@@ -0,0 +1,89 @@
|
||||
# RHISwapChain 方法
|
||||
|
||||
## Shutdown
|
||||
|
||||
```cpp
|
||||
virtual void Shutdown() = 0;
|
||||
```
|
||||
|
||||
关闭交换链。
|
||||
|
||||
## GetCurrentBackBufferIndex
|
||||
|
||||
```cpp
|
||||
virtual uint32_t GetCurrentBackBufferIndex() const = 0;
|
||||
```
|
||||
|
||||
获取当前后台缓冲索引。
|
||||
|
||||
## GetCurrentBackBuffer
|
||||
|
||||
```cpp
|
||||
virtual RHITexture* GetCurrentBackBuffer() = 0;
|
||||
```
|
||||
|
||||
获取当前后台缓冲纹理。
|
||||
|
||||
## Present
|
||||
|
||||
```cpp
|
||||
virtual void Present(uint32_t syncInterval = 1, uint32_t flags = 0) = 0;
|
||||
```
|
||||
|
||||
呈现渲染结果。
|
||||
|
||||
## Resize
|
||||
|
||||
```cpp
|
||||
virtual void Resize(uint32_t width, uint32_t height) = 0;
|
||||
```
|
||||
|
||||
调整交换链大小。
|
||||
|
||||
## SetFullscreen
|
||||
|
||||
```cpp
|
||||
virtual void SetFullscreen(bool fullscreen) = 0;
|
||||
```
|
||||
|
||||
设置全屏模式。
|
||||
|
||||
## IsFullscreen
|
||||
|
||||
```cpp
|
||||
virtual bool IsFullscreen() const = 0;
|
||||
```
|
||||
|
||||
检查是否全屏。
|
||||
|
||||
## ShouldClose
|
||||
|
||||
```cpp
|
||||
virtual bool ShouldClose() const = 0;
|
||||
```
|
||||
|
||||
检查是否应该关闭。
|
||||
|
||||
## SetShouldClose
|
||||
|
||||
```cpp
|
||||
virtual void SetShouldClose(bool shouldClose) = 0;
|
||||
```
|
||||
|
||||
设置关闭标志。
|
||||
|
||||
## PollEvents
|
||||
|
||||
```cpp
|
||||
virtual void PollEvents() = 0;
|
||||
```
|
||||
|
||||
处理窗口事件。
|
||||
|
||||
## GetNativeHandle
|
||||
|
||||
```cpp
|
||||
virtual void* GetNativeHandle() = 0;
|
||||
```
|
||||
|
||||
获取原生 API 句柄。
|
||||
Reference in New Issue
Block a user