Creates a single kernel object.


convenience init?(source string: 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.


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.


Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software