---
title: threadgroupMemoryDataSize
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlargument/threadgroupmemorydatasize
---

# threadgroupMemoryDataSize

The size, in bytes, of the threadgroup data.

## Declaration

```swift
var threadgroupMemoryDataSize: Int { get }
```

## Discussion

Discussion If the argument is not a threadgroup, querying this property is a fatal error. The Metal device determines this value.

## See Also

### Describing a threadgroup memory argument

- [threadgroupMemoryAlignment](metal/mtlargument/threadgroupmemoryalignment.md)
