---
title: depth
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/lowleveltextureresource/descriptor-swift.struct/depth
---

# depth

The depth of the texture image for the base mipmap level, in pixels.

## Declaration

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

## Discussion

Discussion Corresponds to MTLTextureDescriptor.depth.
