Sign in
cobalt
/
cobalt
/
08336faa599332e3e3bf29b7ad38ef023018b55e
/
.
/
third_party
/
skia_next
/
third_party
/
skia
/
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
);
}