Sign in
skia
/
skia
/
8d2fb64247f0f8f5e00f6895464f94ab705c9b83
/
.
/
tests
/
sksl
/
runtime
/
Switch.stage
blob: 6d58e81763af620068560774c98d9dab9ffd3656 [
file
] [
log
] [
blame
]
uniform half4 colorGreen
;
uniform half4 colorRed
;
half4 main
(
float2 coords
)
{
half4 color
;
switch
(
int
(
colorGreen
.
y
))
{
case
0
:
color
=
colorRed
;
break
;
case
1
:
color
=
colorGreen
;
break
;
default
:
color
=
colorRed
;
break
;
}
return
half4
(
color
);
}