llama-cpp-turboquant/test/shaders/glsl/test_op_custom_shader.comp
2020-08-31 16:01:27 +01:00

10 lines
262 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;
}