---
title: "init(pixelBuffer:)"
framework: coreimage
role: symbol
role_heading: Initializer
path: "coreimage/cirenderdestination/init(pixelbuffer:)"
---

# init(pixelBuffer:)

Creates a render destination based on a Core Video pixel buffer.

## Declaration

```swift
init(pixelBuffer: CVPixelBuffer)
```

## Parameters

- `pixelBuffer`: The doc://com.apple.documentation/documentation/CoreVideo/CVPixelBuffer render target.

## Return Value

Return Value A CIRenderDestination object for rendering to a CVPixelBuffer.

## Discussion

Discussion The destination’s colorSpace property will default to a CGColorSpace created by querying the CVPixelBuffer object’s attributes.

## See Also

### Creating a Render Destination

- [init(ioSurface:)](coreimage/cirenderdestination/init(iosurface:)-1hfcq.md)
- [init(mtlTexture:commandBuffer:)](coreimage/cirenderdestination/init(mtltexture:commandbuffer:)-2iu5i.md)
- [init(width:height:pixelFormat:commandBuffer:mtlTextureProvider:)](coreimage/cirenderdestination/init(width:height:pixelformat:commandbuffer:mtltextureprovider:).md)
- [init(glTexture:target:width:height:)](coreimage/cirenderdestination/init(gltexture:target:width:height:)-9ci8e.md)
- [init(bitmapData:width:height:bytesPerRow:format:)](coreimage/cirenderdestination/init(bitmapdata:width:height:bytesperrow:format:).md)
