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

# tileWidth

Sets the width of a tile for this render pass.

## Declaration

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

## See Also

### Drawing with tile shaders

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