repo.or.cz
/
gegl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update Portuguese translation
[gegl.git]
/
opencl
/
invert-linear.cl
blob
f6fe968682249c138fe0e6b456f46c74ad9dc755
1
__kernel void gegl_invert_linear
(
__global
const float4
*
in
,
2
__global float4
*
out
)
3
{
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
;
10
}