- macOS 10.4+
- Core Image
CIKernelobject that contains a kernel function.
A list of arguments to supply to the kernel function. The supplied arguments must be type-compatible with the function signature of the kernel function. The list of arguments must be terminated by the
If you are implementing a custom filter, this method needs to be called from within the
output method in order to apply your kernel function to the
CIImage object. For example, if the kernel function has this signature:
You would supply two arguments after the
k argument to the
apply: method. In this case, the first argument must be a sampler and the second a floating-point value. For more information on kernels, see Core Image Kernel Language Reference.