---
title: usedSize
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlheap/usedsize
---

# usedSize

The size of all resources currently in the heap, in bytes.

## Declaration

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

## See Also

### Checking a heap’s size information

- [maxAvailableSize(alignment:)](metal/mtlheap/maxavailablesize(alignment:).md)
- [size](metal/mtlheap/size.md)
- [currentAllocatedSize](metal/mtlheap/currentallocatedsize.md)
