---
title: width
framework: metalperformanceshaders
role: symbol
role_heading: Instance Property
path: metalperformanceshaders/mpsimagedescriptor/width
---

# width

The width of the image.

## Declaration

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

## Discussion

Discussion The formal width of the image, in pixels. The default value is 1.

## See Also

### Properties

- [height](metalperformanceshaders/mpsimagedescriptor/height.md)
- [featureChannels](metalperformanceshaders/mpsimagedescriptor/featurechannels.md)
- [numberOfImages](metalperformanceshaders/mpsimagedescriptor/numberofimages.md)
- [pixelFormat](metalperformanceshaders/mpsimagedescriptor/pixelformat.md)
- [channelFormat](metalperformanceshaders/mpsimagedescriptor/channelformat.md)
- [cpuCacheMode](metalperformanceshaders/mpsimagedescriptor/cpucachemode.md)
- [storageMode](metalperformanceshaders/mpsimagedescriptor/storagemode.md)
- [usage](metalperformanceshaders/mpsimagedescriptor/usage.md)
