Files
XCSDD/docs/api/rhi/swap-chain/methods.md
ssdfasd 58a83f445a 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
2026-03-19 12:44:08 +08:00

90 lines
1.1 KiB
Markdown

# 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 句柄。