---
title: layerCount
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlrasterizationratemap/layercount
---

# layerCount

The number of layers in the rate map.

## Declaration

```swift
var layerCount: Int { get }
```

## See Also

### Inspecting geometric and rendering properties

- [screenSize](metal/mtlrasterizationratemap/screensize.md)
- [physicalSize(layer:)](metal/mtlrasterizationratemap/physicalsize(layer:).md)
- [physicalGranularity](metal/mtlrasterizationratemap/physicalgranularity.md)
