xref: /aosp_15_r20/external/skia/tests/sksl/errors/BadModifiers.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1### Compilation failed:
2
3error: 1: type 'void' does not support qualifier 'readonly writeonly'
4const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
5^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
6error: 1: 'const' is not permitted here
7const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
8^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
9error: 1: 'in' is not permitted here
10const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
11^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
12error: 1: 'out' is not permitted here
13const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
14^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
15error: 1: 'uniform' is not permitted here
16const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
17^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
18error: 1: 'flat' is not permitted here
19const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
20^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
21error: 1: 'noperspective' is not permitted here
22const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
23^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
24error: 1: '$pure' is not permitted here
25const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
26^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
27error: 1: 'buffer' is not permitted here
28const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
29^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
30error: 1: 'pixel_local' is not permitted here
31const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
32^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
33error: 1: functions cannot be both 'inline' and 'noinline'
34const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
35^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
36error: 4: type 'float' does not support qualifier 'readonly writeonly'
37void func2(const in out uniform flat noperspective $pure
38           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
39error: 4: 'uniform' is not permitted here
40void func2(const in out uniform flat noperspective $pure
41           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
42error: 4: 'flat' is not permitted here
43void func2(const in out uniform flat noperspective $pure
44           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
45error: 4: 'noperspective' is not permitted here
46void func2(const in out uniform flat noperspective $pure
47           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
48error: 4: '$pure' is not permitted here
49void func2(const in out uniform flat noperspective $pure
50           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
51error: 4: 'inline' is not permitted here
52void func2(const in out uniform flat noperspective $pure
53           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
54error: 4: 'noinline' is not permitted here
55void func2(const in out uniform flat noperspective $pure
56           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
57error: 4: 'buffer' is not permitted here
58void func2(const in out uniform flat noperspective $pure
59           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
60error: 4: 'pixel_local' is not permitted here
61void func2(const in out uniform flat noperspective $pure
62           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
63error: 7: type 'float' does not support qualifier 'readonly writeonly'
64const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
65^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
66error: 7: 'in uniform' variables not permitted
67const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
68^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
69error: 7: 'uniform buffer' variables not permitted
70const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
71^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
72error: 7: '$pure' is not permitted here
73const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
74^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
75error: 7: 'inline' is not permitted here
76const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
77^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
78error: 7: 'noinline' is not permitted here
79const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
80^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
81error: 7: 'buffer' is not permitted here
82const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
83^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
84error: 7: 'pixel_local' is not permitted here
85const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
86^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
87error: 7: 'const' variables must be initialized
88const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
89^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
90error: 11: 'in uniform' variables not permitted
91buffer MyInterfaceBlock { float var; };
92       ^^^^^^^^^^^^^^^^
93error: 11: 'readonly' and 'writeonly' qualifiers cannot be combined
94buffer MyInterfaceBlock { float var; };
95       ^^^^^^^^^^^^^^^^
96error: 11: 'uniform buffer' variables not permitted
97buffer MyInterfaceBlock { float var; };
98       ^^^^^^^^^^^^^^^^
99error: 10: '$pure' is not permitted here
100const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
101^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
102error: 10: 'inline' is not permitted here
103const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
104^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
105error: 10: 'noinline' is not permitted here
106const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
107^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
108error: 10: 'pixel_local' is not permitted here
109const in out uniform flat noperspective $pure inline noinline readonly writeonly pixel_local
110^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
11136 errors
112