48c2884c70
Previously, `writeVectorConstructor` did not consider boolean types at all when converting scalars to a different type. Now, this code reuses the existing logic from `castScalarTo(Float|SignedInt|UnsignedInt)` which supports Booleans. Added `castScalarToBoolean` to cover going in the opposite direction. Change-Id: I5479ab181b9b721db7fbff0bdc01718ce8f9f9b9 Bug: skia:11171 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/353625 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com> |
||
---|---|---|
.. | ||
blend | ||
errors | ||
folding | ||
fp | ||
glsl | ||
inliner | ||
intrinsics | ||
metal | ||
runtime | ||
runtime_errors | ||
shared | ||
spirv | ||
workarounds |