---
title: "physicalSize(layer:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlrasterizationratemap/physicalsize(layer:)"
---

# physicalSize(layer:)

Returns the dimensions, in pixels, of the area in the render target affected by the rasterization rate map.

## Declaration

```swift
func physicalSize(layer layerIndex: Int) -> MTLSize
```

## Parameters

- `layerIndex`: The index of the layer.

## Mentioned in

Rendering with a rasterization rate map

## Return Value

Return Value The dimensions, in pixels, of the area in the render target affected by the rasterization rate map.

## Discussion

Discussion Your render targets should be at least as large as the physical size returned by this method. Each layer may have different rasterization rates and therefore different physical size requirements.

## See Also

### Inspecting geometric and rendering properties

- [layerCount](metal/mtlrasterizationratemap/layercount.md)
- [screenSize](metal/mtlrasterizationratemap/screensize.md)
- [physicalGranularity](metal/mtlrasterizationratemap/physicalgranularity.md)
