8abdea6b77
Co-authored-by: Copilot <copilot@github.com>
17 lines
303 B
Plaintext
17 lines
303 B
Plaintext
#version 450
|
|
|
|
layout(local_size_x = 1) in; // Запускаем 1 поток
|
|
|
|
layout(std430, binding = 0) buffer InputBuffer {
|
|
float a;
|
|
float b;
|
|
} inputs;
|
|
|
|
layout(std430, binding = 1) buffer OutputBuffer {
|
|
float result;
|
|
} outputs;
|
|
|
|
void main() {
|
|
outputs.result = inputs.a * inputs.b;
|
|
}
|