1 __kernel void svg_src_over
(__global const float4
*in
,
2 __global const float4
*aux
,
5 int gid
= get_global_id
(0);
6 float4 in_v
= in
[gid];
7 float4 aux_v = aux[gid];
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
;