---
title: depthPlane
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlrenderpassattachmentdescriptor/depthplane
---

# depthPlane

The depth plane of the texture used for rendering to the attachment.

## Declaration

```swift
var depthPlane: Int { get set }
```

## Discussion

Discussion If the texture isn’t a 3D texture, then Metal ignores this property. The default value is 0.

## See Also

### Specifying the texture for the attachment

- [texture](metal/mtlrenderpassattachmentdescriptor/texture.md)
- [level](metal/mtlrenderpassattachmentdescriptor/level.md)
- [slice](metal/mtlrenderpassattachmentdescriptor/slice.md)
