<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTL4RenderPassDescriptor/samplePositions",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "s:So24MTL4RenderPassDescriptorC5MetalE15samplePositionsSaySo17MTLSamplePositionaGvp"
  },
  "title" : "samplePositions"
}
-->

# samplePositions

Configures the custom sample positions to use in MSAA rendering.

```
var samplePositions: [MTLSamplePosition] { get set }
```

## Discussion

Set to an empty array to disable custom sample positions.

---

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)