How to compile CIFilter at runtime?
-
03-07-2021 - |
سؤال
I would like to do at runtime in a program, what Quartz Composer does with the Core Image Filter patch: Compiling a CIFilter inside Quartz Composer. Quartz Composer has a patch that takes the text of the CIFilter kernel, with which it creates the CIFilter.
Do we have access to this in the public API?
المحلول
The solution is to apply a kernel, and the kernel is created with the + kernelsWithString: class method.
لا تنتمي إلى StackOverflow