llama-cpp-turboquant/test/shaders/glsl/test_op_custom_shader.comp
2021-01-20 21:21:07 +00:00

13 lines
265 B
Text

#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;
}