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

# defaultRasterSampleCount

Sets the default raster sample count for the render pass when it references no attachments.

## Declaration

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