---
title: currentAllocatedSize
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlheap/currentallocatedsize
---

# currentAllocatedSize

The size, in bytes, of the current heap allocation.

## Declaration

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

## See Also

### Checking a heap’s size information

- [maxAvailableSize(alignment:)](metal/mtlheap/maxavailablesize(alignment:).md)
- [size](metal/mtlheap/size.md)
- [usedSize](metal/mtlheap/usedsize.md)
