Method DivRoundUp
DivRoundUp(int, int)
Used to compute the number of thread group needed for the process.
Declaration
public static int DivRoundUp(int threadCount, int threadCountPerGroup)
Parameters
Type | Name | Description |
---|---|---|
int | threadCount | Number of thread required for the process. |
int | threadCountPerGroup | Number of thread group defined in the shader. |
Returns
Type | Description |
---|---|
int |