1 2 3 4 5 6 7 8 9 10 11 12 13
__kernel void test_fill_image_2d_array(__write_only image2d_array_t dst) { int coordx; int coordy; int coordz; coordx = (int)get_global_id(0); coordy = (int)get_global_id(1); coordz = (int)get_global_id(2); uint4 color4 = {0, 1, 2 ,3}; if (coordz < 7) write_imageui(dst, (int4)(coordx, coordy, coordz, 0), color4); }