So I've got mandelbrot running in OpenCL: I am to compare it to Intels TBB.
This is something I really should know by now and I feel silly asking.
I have a struct that represents an RGBA pixel, and I create a buffer of them - a bitmap
BGRA8* buffer = (BGRA8*)malloc( width * height * sizeof(BGRA8) );
Then I iterate through x and y doing whatever using parallel_for
Where do I put my x, y in terms of
buffer[ index ]
?
Thanks in advance, I know this is a silly question!