---
title: requiredThreadsPerMeshThreadgroup
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4meshrenderpipelinedescriptor/requiredthreadspermeshthreadgroup
---

# requiredThreadsPerMeshThreadgroup

Controls the required number of mesh threads-per-threadgroup when drawing with a mesh shader pipeline you create from this descriptor.

## Declaration

```swift
var requiredThreadsPerMeshThreadgroup: MTLSize { get set }
```

## Discussion

Discussion This argument is optional, unless this pipeline uses CooperativeTensors, in which case you are responsible for providing it. When this value is set to non-zero, you are responsible for ensuring the parameter threadsPerMeshThreadgroup in any mesh dispatch draw calls that use this mesh render pipeline, such as drawMeshThreadgroups(threadgroupsPerGrid:threadsPerObjectThreadgroup:threadsPerMeshThreadgroup:), match it. Setting this value to a size of 0 in every dimension disables this property.
