init(pixelBuffer:)
Creates a render destination based on a Core Video pixel buffer.
Declaration
init(pixelBuffer: CVPixelBuffer)Parameters
- pixelBuffer:
The Cvpixelbuffer render target.
Return Value
A CIRenderDestination object for rendering to a CVPixelBuffer.
Discussion
The destination’s colorSpace property will default to a CGColorSpace created by querying the CVPixelBuffer object’s attributes.