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

# maxTotalThreadsPerThreadgroup

The maximum number of threads in a threadgroup when dispatching a command using the pipeline.

## Declaration

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