---
title: size
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlsizeandalign/size
---

# size

The size of a resource, in bytes.

## Declaration

```swift
var size: Int
```

## See Also

### Accessing the size and alignment

- [align](metal/mtlsizeandalign/align.md)
