xref: /aosp_15_r20/external/skia/tests/sksl/shared/InterpolantIn.skrp (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1### Compilation failed:
2
3error: 1: 'in' is not permitted here
4layout(location=0) in float defaultVarying;
5^^^^^^^^^^^^^^^^^^^^^
6error: 1: layout qualifier 'location' is not permitted here
7layout(location=0) in float defaultVarying;
8^^^^^^^^^^^^^^^^^^^^^
9error: 2: 'in' is not permitted here
10layout(location=1) in noperspective float linearVarying;
11^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12error: 2: 'noperspective' is not permitted here
13layout(location=1) in noperspective float linearVarying;
14^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15error: 2: layout qualifier 'location' is not permitted here
16layout(location=1) in noperspective float linearVarying;
17^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18error: 3: 'in' is not permitted here
19layout(location=2) in flat float flatVarying;
20^^^^^^^^^^^^^^^^^^^^^^^^^^
21error: 3: 'flat' is not permitted here
22layout(location=2) in flat float flatVarying;
23^^^^^^^^^^^^^^^^^^^^^^^^^^
24error: 3: layout qualifier 'location' is not permitted here
25layout(location=2) in flat float flatVarying;
26^^^^^^^^^^^^^^^^^^^^^^^^^^
27error: 5: 'main' must return: 'vec4', 'float4', or 'half4'
28void main() {
29^^^^^^^^^^^
30error: 6: unknown identifier 'sk_FragColor'
31    sk_FragColor = half4(defaultVarying, linearVarying, flatVarying, 1.0);
32    ^^^^^^^^^^^^
3310 errors
34