# OpenGLCommandList::Dispatch ```cpp void Dispatch(uint32_t x, uint32_t y, uint32_t z) ``` 分发计算着色器。 **参数:** - `x` - X 方向线程组数量 - `y` - Y 方向线程组数量 - `z` - Z 方向线程组数量 **示例:** ```cpp commandList->Dispatch(8, 8, 1); ``` ## 相关文档 - [OpenGLCommandList](command-list.md) - 返回类总览