Contents

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