xref: /aosp_15_r20/external/skia/tests/sksl/errors/InvalidBackendBindingFlagsMetal.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1*c8dee2aaSAndroid Build Coastguard Worker### Compilation failed:
2*c8dee2aaSAndroid Build Coastguard Worker
3*c8dee2aaSAndroid Build Coastguard Workererror: 14: layout qualifier 'sampler' is not permitted here
4*c8dee2aaSAndroid Build Coastguard Workerlayout(metal, rgba32f, sampler=0) readonly texture2D rtexture3;            // invalid (has sampler)
5*c8dee2aaSAndroid Build Coastguard Worker^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6*c8dee2aaSAndroid Build Coastguard Workererror: 15: layout qualifier 'sampler' is not permitted here
7*c8dee2aaSAndroid Build Coastguard Workerlayout(metal, rgba32f, sampler=0) writeonly texture2D wtexture3;           // invalid (has sampler)
8*c8dee2aaSAndroid Build Coastguard Worker^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9*c8dee2aaSAndroid Build Coastguard Workererror: 16: layout qualifier 'sampler' is not permitted here
10*c8dee2aaSAndroid Build Coastguard Workerlayout(metal, rgba32f, texture=0, sampler=0) readonly texture2D rtexture4; // invalid (has sampler)
11*c8dee2aaSAndroid Build Coastguard Worker^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12*c8dee2aaSAndroid Build Coastguard Workererror: 17: layout qualifier 'sampler' is not permitted here
13*c8dee2aaSAndroid Build Coastguard Workerlayout(metal, rgba32f, texture=0, sampler=0) writeonly texture2D wtexture4;// invalid (has sampler)
14*c8dee2aaSAndroid Build Coastguard Worker^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15*c8dee2aaSAndroid Build Coastguard Workererror: 18: storage textures must declare a pixel format
16*c8dee2aaSAndroid Build Coastguard Workerlayout(metal, texture=0) readonly texture2D rtexture5;                     // invalid (no pixformat)
17*c8dee2aaSAndroid Build Coastguard Worker^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18*c8dee2aaSAndroid Build Coastguard Workererror: 19: storage textures must declare a pixel format
19*c8dee2aaSAndroid Build Coastguard Workerlayout(metal, texture=0) writeonly texture2D wtexture5;                    // invalid (no pixformat)
20*c8dee2aaSAndroid Build Coastguard Worker^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21*c8dee2aaSAndroid Build Coastguard Workererror: 20: 'binding' modifier cannot coexist with 'texture'/'sampler'
22*c8dee2aaSAndroid Build Coastguard Workerlayout(metal, binding=0, texture=0, sampler=0) sampler2D sampler3;         // invalid (has binding)
23*c8dee2aaSAndroid Build Coastguard Worker^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24*c8dee2aaSAndroid Build Coastguard Workererror: 21: layout qualifier 'texture' is not permitted here
25*c8dee2aaSAndroid Build Coastguard Workerlayout(metal, texture=0, sampler=0) ubo2 { float c; };                     // invalid (has tex/samp)
26*c8dee2aaSAndroid Build Coastguard Worker^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27*c8dee2aaSAndroid Build Coastguard Workererror: 21: layout qualifier 'sampler' is not permitted here
28*c8dee2aaSAndroid Build Coastguard Workerlayout(metal, texture=0, sampler=0) ubo2 { float c; };                     // invalid (has tex/samp)
29*c8dee2aaSAndroid Build Coastguard Worker^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30*c8dee2aaSAndroid Build Coastguard Workererror: 22: layout qualifier 'set' is not permitted here
31*c8dee2aaSAndroid Build Coastguard Workerlayout(metal, set=0, binding=0) ubo3 { float d; };                         // invalid (has set)
32*c8dee2aaSAndroid Build Coastguard Worker^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33*c8dee2aaSAndroid Build Coastguard Worker10 errors
34