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