<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRenderer/Configuration-swift.struct/drawableRenderContextRasterSampleCount",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "s:So27CP_OBJECT_cp_layer_rendererC18CompositorServicesE13ConfigurationV38drawableRenderContextRasterSampleCountSivp"
  },
  "title" : "drawableRenderContextRasterSampleCount"
}
-->

# drawableRenderContextRasterSampleCount

The multisample antialiasing sample count used for rendering.

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

## Discussion

If you’re using multisample antialiasing, set the same value you attach to your Metal pipeline.
[`LayerRenderer`](/documentation/CompositorServices/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>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)