xref: /aosp_15_r20/external/skia/tests/sksl/errors/BitShiftFloat.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1### Compilation failed:
2
3error: 5: type mismatch: '>>=' cannot operate on 'float', 'int'
4void shr_eq() { x >>= 1; }
5                ^^^^^^^
6error: 6: type mismatch: '<<=' cannot operate on 'float', 'int'
7void shl_eq() { x <<= 1; }
8                ^^^^^^^
9error: 7: type mismatch: '&=' cannot operate on 'float', 'int'
10void and_eq() { x &=  1; }
11                ^^^^^^^
12error: 8: type mismatch: '|=' cannot operate on 'float', 'int'
13void or_eq()  { x |=  1; }
14                ^^^^^^^
15error: 9: type mismatch: '^=' cannot operate on 'float', 'int'
16void xor_eq() { x ^=  1; }
17                ^^^^^^^
18error: 11: type mismatch: '>>' cannot operate on 'float', 'int'
19void shr() { x = x >> 1; }
20                 ^^^^^^
21error: 12: type mismatch: '<<' cannot operate on 'float', 'int'
22void shl() { x = x << 1; }
23                 ^^^^^^
24error: 13: type mismatch: '&' cannot operate on 'float', 'int'
25void and() { x = x & 1; }
26                 ^^^^^
27error: 14: type mismatch: '|' cannot operate on 'float', 'int'
28void or()  { x = x | 1; }
29                 ^^^^^
30error: 15: type mismatch: '^' cannot operate on 'float', 'int'
31void xor() { x = x ^ 1; }
32                 ^^^^^
3310 errors
34