docs: update RHI API docs
This commit is contained in:
@@ -4,13 +4,21 @@
|
||||
virtual void Dispatch(uint32_t x, uint32_t y, uint32_t z) = 0;
|
||||
```
|
||||
|
||||
分发计算着色器。
|
||||
分发计算着色器线程组。用于执行计算着色器(Compute Shader),将工作分配到三维线程网格中。
|
||||
|
||||
**参数:**
|
||||
- `x` - X 方向线程组数量
|
||||
- `y` - Y 方向线程组数量
|
||||
- `z` - Z 方向线程组数量
|
||||
|
||||
**返回:** `void`
|
||||
|
||||
**异常:** 无
|
||||
|
||||
**线程安全:** ❌
|
||||
|
||||
**复杂度:** O(x * y * z)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
@@ -20,3 +28,5 @@ cmdList->Dispatch(8, 8, 1); // 分发 8x8x1 线程组
|
||||
## 相关文档
|
||||
|
||||
- [RHICommandList 总览](command-list.md) - 返回类总览
|
||||
- [SetPipelineState](set-pipeline-state.md) - 设置管线状态
|
||||
- [Draw](draw.md) - 绘制
|
||||
Reference in New Issue
Block a user