Sign in
skia
/
skia
/
be82005209c06840f0d5b13156d160a3e0efe702
/
.
/
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
;
}