---
title: tileWidth
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlrenderpassdescriptor/tilewidth
---

# tileWidth

The tile width, in pixels.

## Declaration

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

## Discussion

Discussion The valid tile sizes are 32 x 32, 32 x 16, and 16 x 16. The Metal driver chooses a default size when your app doesn’t set a tile size.

## See Also

### Specifying tile shading parameters

- [imageblockSampleLength](metal/mtlrenderpassdescriptor/imageblocksamplelength.md)
- [threadgroupMemoryLength](metal/mtlrenderpassdescriptor/threadgroupmemorylength.md)
- [tileHeight](metal/mtlrenderpassdescriptor/tileheight.md)
