<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSOpenGLPFASampleAlpha",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@Ea@NSOpenGLPFAAllRenderers@NSOpenGLPFASampleAlpha"
  },
  "title" : "NSOpenGLPFASampleAlpha"
}
-->

# NSOpenGLPFASampleAlpha

A Boolean attribute. If present and used with [`NSOpenGLPFASampleBuffers`](/documentation/AppKit/NSOpenGLPFASampleBuffers) and [`NSOpenGLPFASampleBuffers`](/documentation/AppKit/NSOpenGLPFASampleBuffers), this attribute hints to OpenGL to update multi-sample alpha values to ensure the most accurate rendering. If pixel format is not requesting antialiasing then this hint does nothing.

```
var NSOpenGLPFASampleAlpha: Int { get }
```

---

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)