llama-cpp-turboquant/test/shaders/glsl/test_shader.comp
Fabian Sauter a53d2b9a4e Fixed shader to header endianness
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:04 +02:00

12 lines
No EOL
263 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;
}