---
title: threadgroupMemoryLength
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlrenderpassdescriptor/threadgroupmemorylength
---

# threadgroupMemoryLength

The per-tile size, in bytes, of the persistent threadgroup memory allocation.

## Declaration

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

## See Also

### Specifying tile shading parameters

- [imageblockSampleLength](metal/mtlrenderpassdescriptor/imageblocksamplelength.md)
- [tileWidth](metal/mtlrenderpassdescriptor/tilewidth.md)
- [tileHeight](metal/mtlrenderpassdescriptor/tileheight.md)
