summaryrefslogtreecommitdiff
path: root/compute_module.comp
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2024-02-11 00:23:20 +0100
committerMitya Selivanov <automainint@guattari.tech>2024-02-11 00:23:20 +0100
commit6cb08bbe4937f9122b0b6712d8674c3085b57349 (patch)
treec3f35955404784f72cdcb86e5857c2ac94c0b204 /compute_module.comp
downloadvulkan_compute_minimal_example-6cb08bbe4937f9122b0b6712d8674c3085b57349.zip
Add code
Diffstat (limited to 'compute_module.comp')
-rw-r--r--compute_module.comp11
1 files changed, 11 insertions, 0 deletions
diff --git a/compute_module.comp b/compute_module.comp
new file mode 100644
index 0000000..a28192c
--- /dev/null
+++ b/compute_module.comp
@@ -0,0 +1,11 @@
+#version 450
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+
+layout(binding = 0) buffer output_buffer {
+ uint values_out[16];
+};
+
+void main() {
+ for (uint i = 0; i < 16; i++) values_out[i] = i;
+}