Sign in
skia
/
skia
/
9f39daff8fd5e924afa750c2daf25fd16f107c2d
/
.
/
tests
/
sksl
/
workarounds
/
AbsInt.glsl
blob: 15b3817a66dfa0b645d93c7a7e0a0e5038a8c98a [
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
;
}