Files
XCEngine/docs/api/rhi/swap-chain/present.md
2026-03-20 02:35:45 +08:00

26 lines
430 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# RHISwapChain::Present
```cpp
virtual void Present(uint32_t syncInterval = 1, uint32_t flags = 0) = 0;
```
呈现后台缓冲区。
**参数:**
- `syncInterval` - 垂直同步间隔0=立即1+=等待)
- `flags` - 呈现标志
**返回:**
**线程安全:**
**示例:**
```cpp
swapChain->Present(1); // 垂直同步呈现
```
## 相关文档
- [RHISwapChain 总览](swap-chain.md) - 返回类总览