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

# allocatedSize

The amount of memory, in byes, a resource consumes, such as for a buffer, texture, or heap.

## Declaration

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