---
title: renderTargetHeight
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4renderpassdescriptor/rendertargetheight
---

# renderTargetHeight

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

## Declaration

```swift
var renderTargetHeight: 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 height of all attachments. The default value of this property is 0.
