---
title: pixelBuffer
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsopenglcontext/pixelbuffer
---

# pixelBuffer

Returns the pixel-buffer object attached to the OpenGL context.

## Declaration

```occ
- (NSOpenGLPixelBuffer *) pixelBuffer;
```

## Return Value

Return Value The pixel buffer object.

## See Also

### Working with Pixel Buffers

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