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

37 lines
613 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.
# D3D12Fence::Wait
## 函数签名
```cpp
void Wait(uint64_t value) override
```
## 中文描述
阻塞等待直到栅栏值达到指定值。利用 Win32 事件进行高效等待。
## 参数
| 参数 | 类型 | 描述 |
|------|------|------|
| `value` | `uint64_t` | 要等待的栅栏值 |
## 返回值
## 复杂度
O(1) 到 O(n)n 为等待时间
## 示例
```cpp
fence.Wait(1); // 等待栅栏值达到 1
```
## 相关文档
- [D3D12Fence](fence.md) - 类总览
- [D3D12Fence::Signal](signal.md) - 信号栅栏
- [D3D12Fence::GetCompletedValue](get-completed-value.md) - 获取完成值