I am working on a Core Image Kernel patch, and need to print out
some values so I can track down why my math is not correct. Is
there a way to do this?
You can do any kind of printf() from an image kernel as it runs on
the GPU - the only thing you can output are pixels. I guess the best
way to debug is to print pixels of different color depending on the
result e.g. you can do things like: