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

# width

The width of the texture image, in pixels.

## Declaration

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

## See Also

### Describing the texture

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