__kernel void simple(__write_only image2d_t tex, int width, int height){
const int x=get_global_id(0); //Узнаем x координату
const int y=get_global_id(1); //y
write_imagef (tex, (int2)(x, y), (float4)(x/(float)width,y/(float)height,0.0f,1.0f)); //Закрашиваем текстуру
}