---
title: initialCapacity
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlresidencysetdescriptor/initialcapacity
---

# initialCapacity

The number of allocations a new residency set can store without reallocating memory.

## Declaration

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

## Discussion

Discussion Reduce the memory reallocations the set needs to make by setting the property to a value large enough to hold the allocations you expect. You can leave the property at its default value of 0, which tells Metal to give the residency set the standard starting capacity. note: The residency set can hold more allocations than its initial capacity.

## See Also

### Configuring the residency set

- [label](metal/mtlresidencysetdescriptor/label.md)
