<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.3.0 - 10.7.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSOpenGLContext/pixelBufferMipMapLevel",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSOpenGLContext(im)pixelBufferMipMapLevel"
  },
  "title" : "pixelBufferMipMapLevel"
}
-->

# pixelBufferMipMapLevel

Returns the mipmap level of the pixel buffer attached to the OpenGL context.

```
- (GLint) pixelBufferMipMapLevel;
```

## Return Value

The desired mipmap level for rendering. This value should be less than or equal to the maximum texture mipmap level of `pixelBuffer` (accessible through an `NSOpenGLPixelBuffer` object’s [`textureMaxMipMapLevel`](/documentation/AppKit/NSOpenGLPixelBuffer/textureMaxMipMapLevel) method).

---

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)