Sign in
cobalt
/
cobalt
/
08336faa599332e3e3bf29b7ad38ef023018b55e
/
.
/
third_party
/
skia_next
/
third_party
/
skia
/
resources
/
sksl
/
inliner
/
IfTestCanBeInlined.sksl
blob: 3f8caa2b78f0396688992110ec8fe950e246477f [
file
] [
log
] [
blame
]
uniform half4 colorGreen
,
colorRed
;
inline
bool
ifTest
(
half4 color
)
{
bool
result
=
bool
(
color
.
g
);
return
result
;
}
half4 main
(
float2 coords
)
{
if
(
ifTest
(
colorGreen
))
return
colorGreen
;
else
return
colorRed
;
}