Initializer

init(source:)

Creates a single kernel object.

Declaration

convenience init?(source string: String)

Parameters

string

A program in the Core Image Kernel Language that contains a single routine marked using the kernel keyword.

Return Value

A new kernel object. The class of the returned object can be CIKernel, CIColorKernel, or CIWarpKernel depending on the type of routine specified in the Core Image Kernel Language source code string.

Discussion

The Core Image Kernel Language is a dialect of the OpenGL Shading Language. See Core Image Kernel Language Reference and Core Image Programming Guide for more details.

See Also

Creating a Kernel Using Core Image Kernel Language

class func makeKernels(source: String) -> [CIKernel]?

Creates and returns and array of CIKernel objects.

Deprecated