From 0d3921b34569253c4d56123dba0b8131b164e231 Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Sat, 5 Sep 2020 08:21:48 +0100 Subject: [PATCH] Added spaces to shader --- test/TestOpShadersFromStringAndFile.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/TestOpShadersFromStringAndFile.cpp b/test/TestOpShadersFromStringAndFile.cpp index 06772cf15..246644c26 100644 --- a/test/TestOpShadersFromStringAndFile.cpp +++ b/test/TestOpShadersFromStringAndFile.cpp @@ -14,9 +14,12 @@ TEST(TestOpAlgoBase, ShaderRawDataFromConstructor) { std::string shader(R"( #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];