Sign in
cobalt
/
cobalt
/
08336faa599332e3e3bf29b7ad38ef023018b55e
/
.
/
third_party
/
skia_next
/
third_party
/
skia
/
tests
/
sksl
/
runtime
/
ConversionConstructors.stage
blob: 32b7fe09f3cab375cb02328b1f8c450c54899522 [
file
] [
log
] [
blame
]
uniform half f
;
uniform
int
i
;
uniform
bool
b
;
half4 main
(
float2 xy
)
{
half x
=
bool
(
f
)
?
half
(
b
)
:
half
(
i
);
int
y
=
bool
(
i
)
?
int
(
b
)
:
int
(
f
);
return
half4
(
half4
(
x
)
*
half
(
y
));
}