Update Portuguese translation
[gegl.git] / opencl / invert-linear.cl
blobf6fe968682249c138fe0e6b456f46c74ad9dc755
1 __kernel void gegl_invert_linear (__global const float4 *in,
2 __global float4 *out)
4 int gid = get_global_id(0);
5 float4 in_v = in[gid];
6 float4 out_v;
7 out_v.xyz = (1.0f - in_v.xyz);
8 out_v.w = in_v.w;
9 out[gid] = out_v;