docs: update RHI API docs
This commit is contained in:
37
docs/api/rhi/d3d12/fence/wait.md
Normal file
37
docs/api/rhi/d3d12/fence/wait.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# 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) - 获取完成值
|
||||
Reference in New Issue
Block a user