Files
XCSDD/docs/api/rhi/d3d12/swap-chain/should-close.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

33 lines
473 B
Markdown

# D3D12SwapChain::ShouldClose
## 函数签名
```cpp
bool ShouldClose() const override
```
## 中文描述
检查窗口是否应该关闭(如收到 WM_CLOSE 消息)。
## 返回值
`bool` - 如果应该关闭则返回 `true`
## 复杂度
O(1)
## 示例
```cpp
if (swapChain->ShouldClose()) {
// 处理关闭
}
```
## 相关文档
- [D3D12SwapChain](swap-chain.md) - 类总览
- [D3D12SwapChain::SetShouldClose](set-should-close.md) - 设置关闭标志