---
title: "init(screenSize:label:)"
framework: metal
role: symbol
role_heading: Initializer
path: "metal/mtlrasterizationratemapdescriptor/init(screensize:label:)"
---

# init(screenSize:label:)

A convenience initializer that creates a rate map descriptor with a given size and identifier.

## Declaration

```swift
convenience init(screenSize: MTLSize, label: String? = nil)
```

## Parameters

- `screenSize`: The logical size, in pixels, of the viewport coordinate system.
- `label`: A string that identifies the resulting rate map.

## Return Value

Return Value A descriptor object whose screenSize and label properties are set to the provided values. You need to add at least one layer rate map to the descriptor.

## See Also

### Creating rate map descriptors

- [init(screenSize:layer:label:)](metal/mtlrasterizationratemapdescriptor/init(screensize:layer:label:).md)
- [init(screenSize:layers:label:)](metal/mtlrasterizationratemapdescriptor/init(screensize:layers:label:).md)
