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

# maxTotalThreadsPerThreadgroup

Sets the maximum number of threads that the GPU can execute simultaneously within a single threadgroup in the tile render pipeline.

## Declaration

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