Function ComputeShader.computeWorkGroups
Computes the number of work groups needed for the given workload size.
final void computeWorkGroups(
uint width,
uint height,
uint depth,
out uint wgx,
out uint wgy,
out uint wgz
);
Parameters
| Name | Description |
|---|---|
| width | Total width to process. |
| height | Total height to process. |
| depth | Total depth to process. |
| wgx | Output: computed work groups in X. |
| wgy | Output: computed work groups in Y. |
| wgz | Output: computed work groups in Z. |