test_shader.comp 263 Bytes
Newer Older
mashun1's avatar
v1  
mashun1 committed
1
2
3
4
5
6
7
8
9
10
11
12
#version 450

layout (local_size_x = 1) in;

layout(set = 0, binding = 0) buffer a { float pa[]; };
layout(set = 0, binding = 1) buffer b { float pb[]; };

void main() {
    uint index = gl_GlobalInvocationID.x;
    pb[index] = pa[index];
    pa[index] = index;
}