blob: dc30412923d8ae86e79ae353e32bc6ccd187eb14 [file] [log] [blame]
wangfei227ba272015-04-16 20:58:45 +08001/*
2 * function: kernel_csc_rgba64torgba
3 * input: image2d_t as read only
4 * output: image2d_t as write only
5 */
6"__kernel void kernel_csc_rgba64torgba (__read_only image2d_t input, __write_only image2d_t output) "
7"{ "
8" int x = get_global_id (0); "
9" int y = get_global_id (1); "
10" sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_NONE | CLK_FILTER_NEAREST; "
11" float4 pixel_in = read_imagef(input, sampler, (int2)(x,y)); "
12" write_imagef(output, (int2)(x,y), pixel_in); "
13"} "
14