xref: /aosp_15_r20/external/skia/resources/sksl/runtime_errors/IllegalModifiers.rts (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1flat                float _flat;
2noperspective       float _noperspective;
3in                  float _in;
4out                 float _out;
5workgroup           float _workgroup;
6$es3                float _es3;
7$pure               float _pure;
8inline              float _inline;
9noinline            float _noinline;
10readonly            float _readonly;
11writeonly           float _writeonly;
12pixel_local         float _pixel_local;
13
14flat                void flat_fn() {}
15noperspective       void noperspective_fn() {}
16in                  void in_fn() {}
17out                 void out_fn() {}
18workgroup           void workgroup_fn() {}
19$es3                void es3_fn() {}
20$pure               void sk_pure_fn() {}
21readonly            void readonly_fn() {}
22writeonly           void writeonly_fn() {}
23buffer              void buffer_fn() {}
24pixel_local         void pixel_local_fn() {}
25
26float4 main(float2 xy) {
27    return float4(1);
28}
29
30/*%%*
31'flat' is not permitted here
32'noperspective' is not permitted here
33'in' is not permitted here
34'out' is not permitted here
35'workgroup' is not permitted here
36'$es3' is not permitted here
37'$pure' is not permitted here
38'inline' is not permitted here
39'noinline' is not permitted here
40type 'float' does not support qualifier 'readonly'
41type 'float' does not support qualifier 'writeonly'
42'pixel_local' is not permitted here
43'flat' is not permitted here
44'noperspective' is not permitted here
45'in' is not permitted here
46'out' is not permitted here
47'workgroup' is not permitted here
48'$es3' is not permitted here
49'$pure' is not permitted here
50type 'void' does not support qualifier 'readonly'
51type 'void' does not support qualifier 'writeonly'
52'buffer' is not permitted here
53'pixel_local' is not permitted here
54*%%*/
55