Sign in
skia
/
skia
/
9a5762052abc8efc4163eeeda68d96ed798460fa
/
.
/
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
));
}