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