Remove matrix-resize 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.

I've also simplified the logic somewhat, because WGSL supports
building a matrix from a list of scalars. This is unlike Metal 1.0
(the origin of the previous implementation) which required vectors.

Bug: skia:14082
Change-Id: I6cc5f92b4ba69abdbe6dfd21e4cda7703b7d55d4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/707596
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
8 files changed