Initializer

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.

See Also

Creating a Render Destination

init(ioSurface: IOSurface)

Creates a render destination based on an IOSurface object.

init(mtlTexture: MTLTexture, commandBuffer: MTLCommandBuffer?)

Creates a render destination based on a Metal texture.

init(glTexture: UInt32, target: UInt32, width: Int, height: Int)

Creates a render destination based on an OpenGL texture.