From 536d888a9287dba1bd93589352a42f738b390c50 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Mon, 28 Aug 2017 09:02:08 +0200 Subject: [PATCH] Add test shader for coherent SSBO. --- reference/shaders/comp/coherent-block.comp | 13 +++++++++++++ shaders/comp/coherent-block.comp | 12 ++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 reference/shaders/comp/coherent-block.comp create mode 100644 shaders/comp/coherent-block.comp diff --git a/reference/shaders/comp/coherent-block.comp b/reference/shaders/comp/coherent-block.comp new file mode 100644 index 00000000..bfab6bbe --- /dev/null +++ b/reference/shaders/comp/coherent-block.comp @@ -0,0 +1,13 @@ +#version 310 es +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; + +layout(binding = 1, std430) coherent restrict writeonly buffer SSBO +{ + vec4 value; +} _10; + +void main() +{ + _10.value = vec4(20.0); +} + diff --git a/shaders/comp/coherent-block.comp b/shaders/comp/coherent-block.comp new file mode 100644 index 00000000..0a174e8e --- /dev/null +++ b/shaders/comp/coherent-block.comp @@ -0,0 +1,12 @@ +#version 310 es +layout(local_size_x = 1) in; + +layout(binding = 1) coherent restrict writeonly buffer SSBO +{ + vec4 value; +}; + +void main() +{ + value = vec4(20.0); +}