[Bf-blender-cvs] [498cec1d5ad] temp-gpu-compute-shaders: Cleanup use uint for indexes in ibo tests.

Jeroen Bakker noreply at git.blender.org
Tue May 11 10:55:47 CEST 2021


Commit: 498cec1d5adcdd5fdb6a6da53749f19041759ca2
Author: Jeroen Bakker
Date:   Tue May 11 10:03:31 2021 +0200
Branches: temp-gpu-compute-shaders
https://developer.blender.org/rB498cec1d5adcdd5fdb6a6da53749f19041759ca2

Cleanup use uint for indexes in ibo tests.

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

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 186ab52b147..752bb9be497 100644
--- a/source/blender/gpu/tests/gpu_shader_test.cc
+++ b/source/blender/gpu/tests/gpu_shader_test.cc
@@ -160,7 +160,7 @@ layout(std430, binding = 0) writeonly buffer outputVboData
 };
 
 void main() {
-  int index = int(gl_GlobalInvocationID.x);
+  uint index = gl_GlobalInvocationID.x;
   vec4 pos = vec4(gl_GlobalInvocationID.x);
   out_positions[index] = pos;
 }
@@ -222,11 +222,11 @@ layout(local_size_x = 1) in;
 
 layout(std430, binding = 1) writeonly buffer outputIboData
 {
-  int out_indexes[];
+  uint out_indexes[];
 };
 
 void main() {
-  int store_index = int(gl_GlobalInvocationID.x);
+  uint store_index = int(gl_GlobalInvocationID.x);
   out_indexes[store_index] = store_index;
 }



More information about the Bf-blender-cvs mailing list