---
title: renderTargetWidth
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4renderpassdescriptor/rendertargetwidth
---

# renderTargetWidth

Sets the width, in pixels, to which Metal constrains the render target.

## Declaration

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

## Discussion

Discussion When this value is non-zero, you need to assign it to be smaller than or equal to the minimum width of all attachments. The default value of this property is 0.
