---
title: requiredThreadsPerObjectThreadgroup
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4meshrenderpipelinedescriptor/requiredthreadsperobjectthreadgroup
---

# requiredThreadsPerObjectThreadgroup

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

## Declaration

```swift
var requiredThreadsPerObjectThreadgroup: 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 threadsPerObjectThreadgroup 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.
