Sign in
skia
/
skia
/
b3aadd56d187b0f037ca99f981024feda7bdab69
/
.
/
resources
/
sksl
/
workarounds
/
AbsInt.sksl
blob: 4e50eca70b57e9373be3ea65826229239f66b55b [
file
] [
log
] [
blame
]
/*#pragma settings EmulateAbsIntFunction*/
uniform
int
ui
;
uniform
float
uf
;
void
main
()
{
int
i
=
abs
(
ui
);
float
f
=
abs
(
uf
);
sk_FragColor
.
x
=
half
(
i
);
sk_FragColor
.
y
=
half
(
f
);
}