---
title: maxTotalThreadsPerThreadgroup
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4computepipelinedescriptor/maxtotalthreadsperthreadgroup
---

# maxTotalThreadsPerThreadgroup

The maximum total number of threads that Metal can execute in a single threadgroup for the compute function.

## Declaration

```swift
var maxTotalThreadsPerThreadgroup: Int { get set }
```
