Type Method

kernelWithString:

Creates a custom blend kernel from a program string.

Declaration

+ (instancetype)kernelWithString:(NSString *)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 blend kernel object, or nil if the specified source code does not contain a valid blend kernel routine.

Discussion

This method is similar to the kernelWithString: method of the superclass CIKernel, but creates only blend kernels. Use this method when you want to ensure that the type of kernel object returned (if any) is always CIBlendKernel.

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