Sign in
skia
/
skia.git
/
1456aff211ca1d3c0489365aa35b761041b56bcc
/
.
/
resources
/
sksl
/
shared
/
UnaryPositiveNegative.sksl
blob: e31d4668c11a268cd97fefda79e3192dd284e7f4 [
file
] [
log
] [
blame
]
uniform half4 colorWhite
,
colorGreen
,
colorRed
;
half4 main
()
{
half2 x
=
colorWhite
.
rg
;
x
=
+
x
;
x
=
-
x
;
return
x
==
half2
(-
1
)
?
colorGreen
:
colorRed
;
}