Add SPIR-V `writeBinaryOperationComponentwiseIfMatrix`.

This works just like `writeBinaryOperation` but if the type is a
matrix, it performs the binary op in a componentwise fashion by
calling `writeComponentwiseMatrixBinary`.

Bug: b/40045109
Change-Id: Ib4088e83c38c5e8969dbd3678731d71d22b4fc7e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/845299
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
1 file changed