[Bf-blender-cvs] [c111955a502] temp-gpu-compute-shaders: Cleanup: use correct codestyle in inline glsl.
Jeroen Bakker
noreply at git.blender.org
Tue May 11 10:55:47 CEST 2021
Commit: c111955a502f925040884cdcebb61ddcc7006767
Author: Jeroen Bakker
Date: Tue May 11 09:56:48 2021 +0200
Branches: temp-gpu-compute-shaders
https://developer.blender.org/rBc111955a502f925040884cdcebb61ddcc7006767
Cleanup: use correct codestyle in inline glsl.
===================================================================
M source/blender/gpu/tests/gpu_shader_test.cc
===================================================================
diff --git a/source/blender/gpu/tests/gpu_shader_test.cc b/source/blender/gpu/tests/gpu_shader_test.cc
index a03a5db54a8..186ab52b147 100644
--- a/source/blender/gpu/tests/gpu_shader_test.cc
+++ b/source/blender/gpu/tests/gpu_shader_test.cc
@@ -154,15 +154,15 @@ TEST_F(GPUTest, gpu_shader_compute_vbo)
layout(local_size_x = 1) in;
-layout(std430, binding = 0) buffer outputVboData
+layout(std430, binding = 0) writeonly buffer outputVboData
{
- vec4 Positions[];
+ vec4 out_positions[];
};
void main() {
int index = int(gl_GlobalInvocationID.x);
vec4 pos = vec4(gl_GlobalInvocationID.x);
- Positions[index] = pos;
+ out_positions[index] = pos;
}
)";
@@ -220,14 +220,14 @@ TEST_F(GPUTest, gpu_shader_compute_ibo)
layout(local_size_x = 1) in;
-layout(std430, binding = 1) buffer outputIboData
+layout(std430, binding = 1) writeonly buffer outputIboData
{
- int Indexes[];
+ int out_indexes[];
};
void main() {
int store_index = int(gl_GlobalInvocationID.x);
- Indexes[store_index] = store_index;
+ out_indexes[store_index] = store_index;
}
)";
More information about the Bf-blender-cvs
mailing list