1layout(set=0, binding=0) uniform bufferOne { int[4] x; }; 2layout(set=0, binding=0) uniform bufferTwo { int[4] y; }; 3 4// Not a duplicate, as "set = -1". 5layout(binding=0) uniform bufferThree { float z; }; 6 7// Duplicates: 8layout(binding=1) uniform bufferFour { float w; }; 9layout(binding=1) uniform bufferFive { float q; }; 10 11// Should not generate any errors despite overlap with above. 12// TODO(skia:13664): Graphite currently generates programs with overlapping indices across interface 13// blocks and texture/sampler types. WGSL requires this to become an error. 14layout(set=0, binding=0, rgba32f) readonly texture2D t; 15 16void main() { 17} 18 19/*%%* 20layout(set=0, binding=0) has already been defined 21layout(binding=1) has already been defined 22*%%*/ 23