docs: update RHI API docs
This commit is contained in:
25
docs/api/rhi/d3d12/command-queue/wait-native.md
Normal file
25
docs/api/rhi/d3d12/command-queue/wait-native.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# D3D12CommandQueue::Wait (Native)
|
||||
|
||||
```cpp
|
||||
void Wait(ID3D12Fence* fence, uint64_t value);
|
||||
```
|
||||
|
||||
等待 D3D12 原生栅栏达到指定值。
|
||||
|
||||
**参数:**
|
||||
- `fence` - D3D12 原生栅栏指针
|
||||
- `value` - 等待的信号值
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
## 示例
|
||||
|
||||
```cpp
|
||||
ID3D12Fence* nativeFence; // D3D12 原生栅栏
|
||||
commandQueue.Wait(nativeFence, 1);
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [D3D12CommandQueue 总览](command-queue.md) - 返回类总览
|
||||
- [Wait(RHIFence*)](../../command-queue/wait.md) - RHIFence 重载版本
|
||||
Reference in New Issue
Block a user