Files
XCEngine/docs/api/rhi/fence/shutdown.md
2026-03-20 02:35:45 +08:00

29 lines
462 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.
# RHIFence::Shutdown
```cpp
virtual void Shutdown() = 0;
```
关闭围栏并释放所有相关资源。此方法将围栏置于不可用状态,任何后续调用行为未定义。
**线程安全**:❌
**复杂度**O(1)
**示例**
```cpp
RHIFence* fence = device->CreateFence();
// 使用围栏...
fence->Signal();
// 关闭围栏,释放资源
fence->Shutdown();
fence = nullptr;
```
## 相关文档
- [RHIFence](fence.md) - 返回类总览