Sign in
skia
/
skia
/
1622df0357140aa3a6114ab904e7a31bd0abd3a4
/
.
/
resources
/
sksl
/
spirv
/
ConstantVectorize.sksl
blob: c9f2a91ea28f2638d53d076bcd9dbec6e3657d08 [
file
] [
log
] [
blame
]
uniform half4 colorGreen
;
half4 main
(
float2 coords
)
{
// We should see only one `OpConstantComposite %v2float %float_3 %float_3` in the output.
float2 a
=
max
(
coords
,
3.0
);
float2 b
=
min
(
coords
,
3.0
);
a
=
b
;
return
colorGreen
;
}