skia2/tests/sksl
John Stiles 48c2884c70 Add SPIR-V support for boolean vector typecasts.
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>
2021-01-14 16:50:03 +00:00
..
blend Deduplicate vector constants in SPIR-V output. 2021-01-06 21:05:50 +00:00
errors Update tests which mix int and float types without casts. 2021-01-13 19:47:13 +00:00
folding Update tests which mix int and float types without casts. 2021-01-13 19:47:13 +00:00
fp Allow type-fluid GLSL-style vec2(int, bool) ctors in SkSL. 2021-01-13 19:45:14 +00:00
glsl Replace array indexing on vector types with swizzles. 2020-12-07 21:16:40 +00:00
inliner Constant-propagate the ! prefix onto constant boolean expressions. 2021-01-07 20:09:49 +00:00
intrinsics Factor out SPIR-V typecasting helper functions. 2021-01-14 00:00:15 +00:00
metal Update tests which mix int and float types without casts. 2021-01-13 19:47:13 +00:00
runtime Add unit tests for for-loop unrolling 2021-01-14 14:38:16 +00:00
runtime_errors In runtime effects, verify that loops conform to ES2 rules 2021-01-13 21:49:44 +00:00
shared Add SPIR-V support for boolean vector typecasts. 2021-01-14 16:50:03 +00:00
spirv Factor out SPIR-V typecasting helper functions. 2021-01-14 00:00:15 +00:00
workarounds Update tests which mix int and float types without casts. 2021-01-13 19:47:13 +00:00