• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1layout(local_size_x = 256) in;
2
3layout(set=0, binding=0) readonly buffer inputBlock
4{
5    uint offset;
6    int[] src;
7};
8
9layout(set=0, binding=1) writeonly buffer outputBlock
10{
11    int[] dest;
12};
13
14void main() {
15    dest[sk_GlobalInvocationID.x] = src[sk_GlobalInvocationID.x] + src[sk_GlobalInvocationID.x + offset];
16}
17