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