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

1.1 KiB

RHISwapChain 方法

Shutdown

virtual void Shutdown() = 0;

关闭交换链。

GetCurrentBackBufferIndex

virtual uint32_t GetCurrentBackBufferIndex() const = 0;

获取当前后台缓冲索引。

GetCurrentBackBuffer

virtual RHITexture* GetCurrentBackBuffer() = 0;

获取当前后台缓冲纹理。

Present

virtual void Present(uint32_t syncInterval = 1, uint32_t flags = 0) = 0;

呈现渲染结果。

Resize

virtual void Resize(uint32_t width, uint32_t height) = 0;

调整交换链大小。

SetFullscreen

virtual void SetFullscreen(bool fullscreen) = 0;

设置全屏模式。

IsFullscreen

virtual bool IsFullscreen() const = 0;

检查是否全屏。

ShouldClose

virtual bool ShouldClose() const = 0;

检查是否应该关闭。

SetShouldClose

virtual void SetShouldClose(bool shouldClose) = 0;

设置关闭标志。

PollEvents

virtual void PollEvents() = 0;

处理窗口事件。

GetNativeHandle

virtual void* GetNativeHandle() = 0;

获取原生 API 句柄。