Sign in
cobalt
/
cobalt
/
08336faa599332e3e3bf29b7ad38ef023018b55e
/
.
/
third_party
/
skia_next
/
third_party
/
skia
/
resources
/
sksl
/
inliner
/
TernaryTestCanBeInlined.sksl
blob: b9cd02e49c80d50dc643ae1f786e37cd2027b0f3 [
file
] [
log
] [
blame
]
uniform half4 colorGreen
,
colorRed
;
inline
bool
test
(
half4 v
)
{
return
bool
(
v
.
g
);
}
half4 main
(
float2 coords
)
{
return
test
(
colorGreen
)
?
colorGreen
:
colorRed
;
}