1layout(set=0, binding=0) readonly buffer inputBlock 2{ 3 uint offset; 4 int[] src; 5}; 6 7layout(set=0, binding=1) writeonly buffer outputBlock 8{ 9 int[] dest; 10}; 11 12void main() { 13 dest[sk_GlobalInvocationID.x] = src[sk_GlobalInvocationID.x] + src[sk_GlobalInvocationID.x + offset]; 14} 15