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

# level

The mipmap level of the texture used for rendering to the attachment.

## Declaration

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

## Discussion

Discussion The default value is 0.

## See Also

### Specifying the texture for the attachment

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