the beginning of the implementation of Vulkan
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -1,2 +1,16 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user