<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLSamplePosition",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@SA@MTLSamplePosition"
  },
  "title" : "MTLSamplePosition"
}
-->

# MTLSamplePosition

A subpixel sample position for use in multisample antialiasing (MSAA).

```
struct MTLSamplePosition
```

## Overview

Subpixel sample positions are in a 16 x 16 grid across a pixel. Each subsample position’s [`x`](/documentation/Metal/MTLSamplePosition/x) and [`y`](/documentation/Metal/MTLSamplePosition/y) values are in 1/16 increments in the floating-point range `[0.0, 15.0/16.0)`. The pixel’s origin point `(0,0)` is at the top-left corner.

See [Positioning samples programmatically](/documentation/Metal/positioning-samples-programmatically) for the details on working with subpixels.

---

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)