drawMeshThreadgroups(threadgroupsPerGrid: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:
A Mtlsize instance that represents the number of threadgroups for each grid dimension.
- threadsPerObjectThreadgroup:
A Mtlsize instance that represents the number of threads in an object shader threadgroup, if applicable.
- threadsPerMeshThreadgroup:
A Mtlsize instance that represents the number of threads in a mesh shader threadgroup.