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

# tileWidth

The width of the tiles, in pixels, for the render command encoder.

## Declaration

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

## Discussion

Discussion The value comes from the tileWidth property of the MTLRenderPassDescriptor at the time you create the render command encoder.

## See Also

### Drawing with tile shaders

- [dispatchThreadsPerTile(_:)](metal/mtlrendercommandencoder/dispatchthreadspertile(_:).md)
- [tileHeight](metal/mtlrendercommandencoder/tileheight.md)
