[Bf-blender-cvs] [bdac4303f8b] temp-gpu-compute-shaders: Cleanup: codeformat in glsl test cases.

Jeroen Bakker noreply at git.blender.org
Mon May 10 08:06:03 CEST 2021


Commit: bdac4303f8bc7e8d8607099171256437ffcb485a
Author: Jeroen Bakker
Date:   Mon May 10 08:05:40 2021 +0200
Branches: temp-gpu-compute-shaders
https://developer.blender.org/rBbdac4303f8bc7e8d8607099171256437ffcb485a

Cleanup: codeformat in glsl test cases.

===================================================================

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 1cc47f46773..7f6b2a13c9c 100644
--- a/source/blender/gpu/tests/gpu_shader_test.cc
+++ b/source/blender/gpu/tests/gpu_shader_test.cc
@@ -36,10 +36,7 @@ layout(local_size_x = 1, local_size_y = 1) in;
 layout(rgba32f, binding = 0) uniform image2D img_output;
 
 void main() {
-  // base pixel colour for image
   vec4 pixel = vec4(1.0, 0.5, 0.2, 1.0);
-  
-  // output to a specific pixel in the image
   imageStore(img_output, ivec2(gl_GlobalInvocationID.xy), pixel);
 }
 
@@ -231,7 +228,7 @@ layout(std430, binding = 0) buffer outputIboData
 void main() {
   int store_index = int(gl_GlobalInvocationID.x);
   int index1 = store_index * 2;
-  int index2 = store_index *2 + 1;
+  int index2 = store_index * 2 + 1;
   int store = ((index2 & 0xFFFF) << 16) | (index1 & 0xFFFF);
   Indexes[store_index] = store;
 }
@@ -292,8 +289,7 @@ layout(std430, binding = 1) buffer outputIboData
 
 void main() {
   int store_index = int(gl_GlobalInvocationID.x);
-  int store = store_index;
-  Indexes[store_index] = store;
+  Indexes[store_index] = store_index;
 }
 
 )";



More information about the Bf-blender-cvs mailing list