xref: /aosp_15_r20/external/skia/resources/sksl/errors/BadFieldAccess.rts (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1*c8dee2aaSAndroid Build Coastguard Workerstruct S { float f; };
2*c8dee2aaSAndroid Build Coastguard Worker
3*c8dee2aaSAndroid Build Coastguard Workervoid not_a_field()    { S s; s.missing = 123; }
4*c8dee2aaSAndroid Build Coastguard Workervoid not_a_function() { S s; s.f(); }
5*c8dee2aaSAndroid Build Coastguard Workervoid not_a_bvec()     { S s; s.f = bool3(true); }
6*c8dee2aaSAndroid Build Coastguard Workervoid not_a_struct()   { S s; s.f.missing; }
7*c8dee2aaSAndroid Build Coastguard Workervoid not_an_array()   { S s; s.f[0]; }
8*c8dee2aaSAndroid Build Coastguard Worker
9*c8dee2aaSAndroid Build Coastguard Worker/*%%*
10*c8dee2aaSAndroid Build Coastguard Workertype 'S' does not have a field named 'missing'
11*c8dee2aaSAndroid Build Coastguard Workernot a function
12*c8dee2aaSAndroid Build Coastguard Workertype mismatch: '=' cannot operate on 'float', 'bool3'
13*c8dee2aaSAndroid Build Coastguard Workertoo many components in swizzle mask
14*c8dee2aaSAndroid Build Coastguard Workerexpected array, but found 'float'
15*c8dee2aaSAndroid Build Coastguard Worker*%%*/
16