---
title: drawableRenderContextRasterSampleCount
framework: compositorservices
role: symbol
role_heading: Instance Property
path: compositorservices/layerrenderer/configuration-swift.struct/drawablerendercontextrastersamplecount
---

# drawableRenderContextRasterSampleCount

The multisample antialiasing sample count used for rendering.

## Declaration

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

## Discussion

Discussion If you’re using multisample antialiasing, set the same value you attach to your Metal pipeline. LayerRenderer sets the value to 1 by default. note: For more information, see doc:com.apple.documentation/metal/improving-edge-rendering-quality-with-multisample-antialiasing-msaa.

## See Also

### Configurating the render context

- [drawableRenderContextStencilFormat](compositorservices/layerrenderer/configuration-swift.struct/drawablerendercontextstencilformat.md)
