bf2163f267
We were allowing these ops on floating point types. The resulting GLSL would fail to compile. We also allowed >>= and <<= on vectors (but not any of the other bitwise ops). The newly added unit tests were failing (eg, not catching errors). New results are correct. Bug: skia:10707 Change-Id: I97b769f1ce59261361109a71061b42dc8ef3c74b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317393 Reviewed-by: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
14 lines
699 B
GLSL
14 lines
699 B
GLSL
### Compilation failed:
|
|
|
|
error: 5: type mismatch: '>>=' cannot operate on 'float2x2', 'int'
|
|
error: 6: type mismatch: '<<=' cannot operate on 'float2x2', 'int'
|
|
error: 7: type mismatch: '&=' cannot operate on 'float2x2', 'int'
|
|
error: 8: type mismatch: '|=' cannot operate on 'float2x2', 'int'
|
|
error: 9: type mismatch: '^=' cannot operate on 'float2x2', 'int'
|
|
error: 11: type mismatch: '>>' cannot operate on 'float2x2', 'int'
|
|
error: 12: type mismatch: '<<' cannot operate on 'float2x2', 'int'
|
|
error: 13: type mismatch: '&' cannot operate on 'float2x2', 'int'
|
|
error: 14: type mismatch: '|' cannot operate on 'float2x2', 'int'
|
|
error: 15: type mismatch: '^' cannot operate on 'float2x2', 'int'
|
|
10 errors
|