Sign in
skia
/
skia
/
ed92d84ffd3aeb34c92e25ecb082f089703fc0ec
/
.
/
tests
/
sksl
/
runtime
/
IfElseBinding.minified.sksl
blob: f0be1d44fd72b848253e4d115bdbb9a6ef3b1b37 [
file
] [
log
] [
blame
]
uniform half4 colorGreen
;
uniform half4 colorRed
;
uniform half4 colorWhite
;
float4 main
(
float2
){
half4 a
=
colorGreen
;
bool
b
=
bool
(
colorGreen
.
y
);
bool
c
=
bool
(
colorGreen
.
x
);
if
(
b
)
if
(
c
)
a
=
colorRed
;
else
a
=
colorRed
;
return
float4
(
a
);}