Sign in
skia
/
skia
/
97be28c4cc05231fe6e70dc32662c24700e731cc
/
.
/
tests
/
sksl
/
runtime
/
Switch.minified.sksl
blob: caaaf48aaf3cce09accf805ed11bff9715bfc7e8 [
file
] [
log
] [
blame
]
uniform half4 colorGreen
;
uniform half4 colorRed
;
half4 main
(
float2 a
){
half4 b
;
switch
(
int
(
colorGreen
.
y
)){
case
0
:
b
=
colorRed
;
break
;
case
1
:
b
=
colorGreen
;
break
;
default
:
b
=
colorRed
;
break
;}
return
b
;}