Hi,
I’m using images to output some precise data. write_imageui accepts a complete BGRA color. My kernel outputs only a single color component. Is there a way to write only a single color component instead of a complete BGRA color?
Reading color value and then writing it back doesn’t seem like a good solution to me - I might get some really strange values if two threads attempt to read/write it at the same time.
Thanks for clarifying!
I think I’ll go with the second solution - I’ll write to 4 different single-channel images and then I’ll have a separate kernel that will join them into a single image.