---
title: screenSize
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlrasterizationratemapdescriptor/screensize
---

# screenSize

The size of the viewport coordinate system, in logical pixels.

## Declaration

```swift
var screenSize: MTLSize { get set }
```

## Mentioned in

Creating a rasterization rate map

## Discussion

Discussion Metal ignores the depth component of this property. The viewport coordinate system’s origin is always at (0,0) and this property determines its size.
