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
kernelkeyword.
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
Related Documentation
- Core Image Programming Guide
- Core Image Kernel Language Reference