<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.5.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLRenderCommandEncoder/tileWidth",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLRenderCommandEncoder(py)tileWidth"
  },
  "title" : "tileWidth"
}
-->

# tileWidth

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

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

## Discussion

The value comes from the [`tileWidth`](/documentation/Metal/MTLRenderPassDescriptor/tileWidth) property of the [`MTLRenderPassDescriptor`](/documentation/Metal/MTLRenderPassDescriptor) at the time you create the render command encoder.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)