---
title: defaultRasterSampleCount
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlrenderpassdescriptor/defaultrastersamplecount
---

# defaultRasterSampleCount

The raster sample count for the render pass when the render pass doesn’t have explicit attachments.

## Declaration

```swift
var defaultRasterSampleCount: Int { get set }
```
