---
title: allocatedSize
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlresidencyset/allocatedsize
---

# allocatedSize

The amount of resident memory, in bytes, the residency set’s resource allocations consume.

## Declaration

```swift
var allocatedSize: UInt64 { get }
```

## Discussion

Discussion The residency set updates the property’s value when you call the commit() method.

## See Also

### Inspecting a residency set

- [label](metal/mtlresidencyset/label.md)
- [device](metal/mtlresidencyset/device.md)
- [containsAllocation(_:)](metal/mtlresidencyset/containsallocation(_:).md)
- [allAllocations](metal/mtlresidencyset/allallocations.md)
- [allocationCount](metal/mtlresidencyset/allocationcount.md)
