Sign in
skia
/
skia
/
4266739dd44eba46a2b1805284e5a49a9a0e64af
/
.
/
resources
/
sksl
/
shared
/
OutParamsAreDistinctFromGlobal.sksl
blob: f583847fc18c0496783a699878e278f2d33f3016 [
file
] [
log
] [
blame
]
uniform half4 colorGreen
,
colorRed
;
half x
=
1
;
bool
out_params_are_distinct_from_global
(
out
half y
)
{
y
=
2
;
return
x
==
1
&&
y
==
2
;
}
half4 main
(
float2 coords
)
{
return
out_params_are_distinct_from_global
(
x
)
?
colorGreen
:
colorRed
;
}