Files
XCEngine/docs/api/rhi/d3d12/command-list/dispatch-indirect.md

26 lines
595 B
Markdown
Raw Normal View History

# D3D12CommandList::DispatchIndirect
```cpp
void DispatchIndirect(void* argBuffer, uint64_t alignedByteOffset);
```
2026-03-20 02:35:45 +08:00
间接分发计算命令,使用存储在缓冲区中的参数执行 `Dispatch` 操作。
**参数:**
- `argBuffer` - 参数缓冲区
- `alignedByteOffset` - 字节偏移
**复杂度:** O(1)
2026-03-20 02:35:45 +08:00
**示例:**
```cpp
ID3D12Resource* argBuffer = /* 包含 DispatchIndirect 参数的缓冲区 */;
cmdList.DispatchIndirect(argBuffer, 0);
```
## 相关文档
- [D3D12CommandList 总览](command-list.md) - 返回类总览
2026-03-20 02:35:45 +08:00
- [Dispatch](dispatch.md) - 直接分发计算任务