---
title: depth
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/textureresource/depth
---

# depth

The depth of the texture image, in pixels.

## Declaration

```swift
@MainActor @preconcurrency var depth: Int { get }
```

## Discussion

Discussion The value is 0 if the texture isn’t a 3D texture.

## See Also

### Describing the texture

- [textureType](realitykit/textureresource/texturetype.md)
- [pixelFormat](realitykit/textureresource/pixelformat.md)
- [height](realitykit/textureresource/height.md)
- [width](realitykit/textureresource/width.md)
- [arrayLength](realitykit/textureresource/arraylength.md)
- [mipmapLevelCount](realitykit/textureresource/mipmaplevelcount.md)
- [semantic](realitykit/textureresource/semantic-swift.property.md)
