Type Method


Creates and returns and array of CIKernel objects.


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



A program in the Core Image Kernel Language that contains one or more routines, each of which is marked using the kernel keyword.

Return Value

An array of CIKernel objects. The array contains one CIKernel objects for each kernel routine in the supplied string. Each object in the array can be of class CIKernel, CIColorKernel, or CIWarpKernel depending on the corresponding routine specified in the Core Image Kernel Language source code string.


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

init?(source: String)

Creates a single kernel object.