---
title: pixelBufferMipMapLevel
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsopenglcontext/pixelbuffermipmaplevel
---

# pixelBufferMipMapLevel

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

## Declaration

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

## Return Value

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 method).

## See Also

### Working with Pixel Buffers

- [setPixelBuffer:cubeMapFace:mipMapLevel:currentVirtualScreen:](appkit/nsopenglcontext/setpixelbuffer:cubemapface:mipmaplevel:currentvirtualscreen:.md)
- [pixelBuffer](appkit/nsopenglcontext/pixelbuffer.md)
- [pixelBufferCubeMapFace](appkit/nsopenglcontext/pixelbuffercubemapface.md)
- [setTextureImageToPixelBuffer:colorBuffer:](appkit/nsopenglcontext/settextureimagetopixelbuffer:colorbuffer:.md)
