Basically I'm trying to share dynamically generated location data (pixel locations) between kernels.
Assume I have the points, 0x0, 51x51, 102x102, 153x153, 204x204 & 255x255.
I have created a block of memory, stuffed the locations into the memory (so they appear as red & green channels). Wrap that data in a CGImage, and then create a CIImage from it.
They don't show up in the filter as the correct locations, the closest I've gotten is to use the colorspace kCGColorSpaceGenericRGBLinear when creating the CGImage, however they're still wrong. 0x0 is correct, but in my short tests, it appears the other values are off by 23.
Supposedly I can turn off color management for the entire rendering chain, but as the rest of the chain is already working and I really don't want to mess with it, I'd like to know if there is a better way to share location data.
I know that I can currently create a dynamic kernel and write the locations into the kernel, however it appears that dynamic kernels are going to go away in the future, so while I'm here, I thought I'd see if there's a way I can properly do this today.