wangfei | 227ba27 | 2015-04-16 20:58:45 +0800 | [diff] [blame] | 1 | /* |
| 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 | |