Initializer

init(ioSurface:)

Creates a render destination based on an IOSurface object.

Declaration

init(ioSurface surface: IOSurface)

Parameters

surface

The IOSurface render target.

Return Value

A CIRenderDestination object for rendering to an IOSurface object.

Discussion

The destination's colorSpace property will default to a CGColorSpace created by querying the IOSurface object's attributes.

See Also

Creating a Render Destination

init(pixelBuffer: CVPixelBuffer)

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

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.