Sign in
skia
/
skia
/
67c3ee616fb5014d483c5314900eea663f10f1e3
/
.
/
tests
/
sksl
/
workarounds
/
AbsInt.glsl
blob: cdfbdf3d1c7308b9533f8ea96403ef053efaab59 [
file
] [
log
] [
blame
]
#version 400
int
_absemulation
(
int
x
)
{
return
x
*
sign
(
x
);
}
out
vec4 sk_FragColor
;
uniform
int
ui
;
uniform
float
uf
;
void
main
()
{
int
i
=
_absemulation
(
ui
);
float
f
=
abs
(
uf
);
sk_FragColor
.
x
=
float
(
i
);
sk_FragColor
.
y
=
f
;
}