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

# currentAllocatedSize

The total amount of memory, in bytes, the GPU device is using for all of its resources.

## Declaration

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

## See Also

### Checking a GPU device’s memory

- [recommendedMaxWorkingSetSize](metal/mtldevice/recommendedmaxworkingsetsize.md)
- [hasUnifiedMemory](metal/mtldevice/hasunifiedmemory.md)
- [maxTransferRate](metal/mtldevice/maxtransferrate.md)
