Commit: 307113d744bcbab0b76ec9cfbb94a88c5616b08d
Author: Jeroen Bakker
Date:   Fri Feb 3 08:23:55 2023 +0100
Branches: master
https://developer.blender.org/rB307113d744bcbab0b76ec9cfbb94a88c5616b08d

GPU: Fix incorrect datatype conversions in test case shaders.

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

M       source/blender/gpu/tests/shaders/gpu_compute_ibo_test.glsl
M       source/blender/gpu/tests/shaders/gpu_compute_vbo_test.glsl

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

diff --git a/source/blender/gpu/tests/shaders/gpu_compute_ibo_test.glsl 
b/source/blender/gpu/tests/shaders/gpu_compute_ibo_test.glsl
index 94c281720b9..1ed50ff4180 100644
--- a/source/blender/gpu/tests/shaders/gpu_compute_ibo_test.glsl
+++ b/source/blender/gpu/tests/shaders/gpu_compute_ibo_test.glsl
@@ -1,5 +1,5 @@
 void main()
 {
-  uint store_index = int(gl_GlobalInvocationID.x);
+  int store_index = int(gl_GlobalInvocationID.x);
   out_indices[store_index] = store_index;
 }
diff --git a/source/blender/gpu/tests/shaders/gpu_compute_vbo_test.glsl 
b/source/blender/gpu/tests/shaders/gpu_compute_vbo_test.glsl
index e8d2eb9201b..cca235da985 100644
--- a/source/blender/gpu/tests/shaders/gpu_compute_vbo_test.glsl
+++ b/source/blender/gpu/tests/shaders/gpu_compute_vbo_test.glsl
@@ -1,6 +1,6 @@
 void main()
 {
-  uint index = gl_GlobalInvocationID.x;
+  int index = gl_GlobalInvocationID.x;
   vec4 pos = vec4(gl_GlobalInvocationID.x);
   out_positions[index] = pos;
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to