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.