6de2e1db03
GLSL supports casting vec4 into mat2 and vice versa, so SkSL should have equivalent support. This CL allows the Compound constructor to take a matrix as input, and fixes up backends to do the right thing when a matrix shows up in the compound-constructor path. Change-Id: I13289ad0a27ba59bddc3706093820594efebc693 Bug: skia:12067 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/426003 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com>
7 lines
268 B
GLSL
7 lines
268 B
GLSL
### Compilation failed:
|
|
|
|
error: 4: invalid argument to 'half' constructor (expected a number or bool, but found 'half2x2')
|
|
error: 5: 'half2x2' is not a valid parameter to 'half2' constructor
|
|
error: 6: 'half2x2' is not a valid parameter to 'half3' constructor
|
|
3 errors
|