makeKernels(source:)
Creates and returns and array of CIKernel objects.
Declaration
class func makeKernels(source string: String) -> [CIKernel]?Parameters
- string:
A program in the Core Image Kernel Language that contains one or more routines, each of which is marked using the
kernelkeyword.
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.
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.