Remove compound-constructor helper functions from WGSL.
These helper functions were adapted from the Metal implementation,
but aren't necessary in WGSL because we can split an expression
into multiple statements painlessly.
Because WGSL supports building a matrix from a list of scalars,
and multiple-argument compound constructors are guaranteed to
only contain scalars and vectors, the implementation can be a bit
simpler than the Metal 1.0-compatible version, which required
grouping the inputs into properly-sized vectors.
After this change, lots of dead code naturally fell out of the
implementation.
Change-Id: I239bef3ff4312ab10204a81c41ed7cd8ec03e462
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/707677
Reviewed-by: Arman Uguray <armansito@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Arman Uguray <armansito@google.com>
10 files changed