Contents

drawMeshThreadgroups(_:threadsPerObjectThreadgroup:threadsPerMeshThreadgroup:)

Encodes a draw command that invokes a mesh shader and, optionally, an object shader with a grid of threadgroups.

Declaration

func drawMeshThreadgroups(_ threadgroupsPerGrid: MTLSize, threadsPerObjectThreadgroup: MTLSize, threadsPerMeshThreadgroup: MTLSize)

Parameters

  • threadgroupsPerGrid:

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

  • threadsPerObjectThreadgroup:

    An Mtlsize instance that represents the number of threads in an object shader threadgroup, if applicable.

  • threadsPerMeshThreadgroup:

    An Mtlsize instance that represents the number of threads in a mesh shader threadgroup.

See Also

Drawing with meshes