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

# tileWidth

The width of the tiles, in pixels, a render pass you create with this descriptor applies to its attachments.

## Declaration

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

## Discussion

Discussion For tile-based rendering, Metal divides each render attachment into smaller regions, or tiles. The property’s default is 0, which tells Metal to select a size that fits in tile memory. See Tailor your apps for Apple GPUs and tile-based deferred rendering for more information about tiles, tile memory, and deferred rendering.
