Contents

dispatchThreads(threadsPerGrid:threadsPerThreadgroup:)

Encodes a compute dispatch command using an arbitrarily-sized grid.

Declaration

func dispatchThreads(threadsPerGrid: MTLSize, threadsPerThreadgroup: MTLSize)

Parameters

  • threadsPerGrid:

    An Mtlsize instance that represents the number of threads 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