---
title: maxThreadsPerThreadgroup
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtldevice/maxthreadsperthreadgroup
---

# maxThreadsPerThreadgroup

The maximum number of threads along each dimension of a threadgroup.

## Declaration

```swift
var maxThreadsPerThreadgroup: MTLSize { get }
```

## Discussion

Discussion This property reports the maximum thread group size the device can support for a trivial shader. This size isn’t guaranteed for all shaders. For the actual thread group size of a specific compute shader, see the maxTotalThreadsPerThreadgroup property of your compute pipeline state. For more information on the specific threadgroup limits of each GPU family, see the Metal feature set tables: Metal feature set tables (PDF) Metal feature set tables (Numbers)

## See Also

### Checking compute support

- [maxThreadgroupMemoryLength](metal/mtldevice/maxthreadgroupmemorylength.md)
