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

# width

The width of the region, in pixels.

## Declaration

```swift
var width: Double
```

## See Also

### Fields

- [height](metalperformanceshaders/mpssize/height.md)
- [depth](metalperformanceshaders/mpssize/depth.md)
