Sign in
skia
/
skia
/
e8ab6e172d07e8d0f04e1fdf17f1202a4547359a
/
.
/
resources
/
sksl
/
shared
/
InoutParamsAreDistinct.sksl
blob: 9b426246ca86376cbc40dfd409e9797d812f2de2 [
file
] [
log
] [
blame
]
uniform half4 colorGreen
,
colorRed
;
bool
inout_params_are_distinct
(
inout half x
,
inout half y
)
{
x
=
1
;
y
=
2
;
return
x
==
1
&&
y
==
2
;
}
half4 main
(
float2 coords
)
{
half x
=
0
;
return
inout_params_are_distinct
(
x
,
x
)
?
colorGreen
:
colorRed
;
}