---
title: depth
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlsize/depth
---

# depth

A value for the z-axis dimension.

## Declaration

```swift
var depth: Int
```

## See Also

### Accessing a size’s dimensions

- [width](metal/mtlsize/width.md)
- [height](metal/mtlsize/height.md)
