xref: /aosp_15_r20/external/skia/tests/sksl/errors/BadFieldAccess.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1### Compilation failed:
2
3error: 3: type 'S' does not have a field named 'missing'
4void not_a_field()    { S s; s.missing = 123; }
5                             ^^^^^^^^^
6error: 4: not a function
7void not_a_function() { S s; s.f(); }
8                             ^^^^^
9error: 5: type mismatch: '=' cannot operate on 'float', 'bool3'
10void not_a_bvec()     { S s; s.f = bool3(true); }
11                             ^^^^^^^^^^^^^^^^^
12error: 6: too many components in swizzle mask
13void not_a_struct()   { S s; s.f.missing; }
14                                     ^^^
15error: 7: expected array, but found 'float'
16void not_an_array()   { S s; s.f[0]; }
17                             ^^^
185 errors
19