Contents

dispatchThreadgroups(threadgroupsPerGrid:threadsPerThreadgroup:)

Encodes a compute dispatch command with a grid that aligns to threadgroup boundaries.

Declaration

func dispatchThreadgroups(threadgroupsPerGrid: MTLSize, threadsPerThreadgroup: MTLSize)

Parameters

  • threadgroupsPerGrid:

    An Mtlsize instance that represents the number of threadgroups in the grid, in each dimension.

  • threadsPerThreadgroup:

    An Mtlsize instance that represents the number of threads in one threadgroup, in each dimension.

See Also

Running dispatch commands