---
title: rasterSampleCount
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4meshrenderpipelinedescriptor/rastersamplecount
---

# rasterSampleCount

Sets number of samples this pipeline applies for each fragment.

## Declaration

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