Update Portuguese translation
[gegl.git] / opencl / svg-src-over.cl
blob13a1d19a066e00908519e2f145aa26f5f383d202
1 __kernel void svg_src_over (__global const float4 *in,
2 __global const float4 *aux,
3 __global float4 *out)
5 int gid = get_global_id(0);
6 float4 in_v = in [gid];
7 float4 aux_v = aux[gid];
8 float4 out_v;
9 out_v.xyz = aux_v.xyz + in_v.xyz * (1.0f - aux_v.w);
10 out_v.w = aux_v.w + in_v.w - aux_v.w * in_v.w;
11 out[gid] = out_v;