<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.4.0 -",
    "macOS: 10.15.4 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLRasterizationRateMapDescriptor/rasterizationRateMapDescriptorWithScreenSize:",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLRasterizationRateMapDescriptor(cm)rasterizationRateMapDescriptorWithScreenSize:"
  },
  "title" : "rasterizationRateMapDescriptorWithScreenSize:"
}
-->

# rasterizationRateMapDescriptorWithScreenSize:

Creates a rate map descriptor with a given size and identifier.

```
+ (MTLRasterizationRateMapDescriptor *) rasterizationRateMapDescriptorWithScreenSize:(MTLSize) screenSize;
```

## Parameters

`screenSize`

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

## Return Value

A descriptor object whose [`screenSize`](/documentation/Metal/MTLRasterizationRateMapDescriptor/screenSize) is set to the provided size. You need to add at least one layer rate map to the descriptor.

---

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)