[Bf-blender-cvs] [715d185dcdb] master: DRW: update test 'draw_pass_all_commands'
Germano Cavalcante
noreply at git.blender.org
Wed Sep 7 13:52:27 CEST 2022
Commit: 715d185dcdb32fd0db1eb881f074e5b0ba7a0965
Author: Germano Cavalcante
Date: Wed Sep 7 08:49:58 2022 -0300
Branches: master
https://developer.blender.org/rB715d185dcdb32fd0db1eb881f074e5b0ba7a0965
DRW: update test 'draw_pass_all_commands'
It was incorrectly updated in rBc226c480079fc07e3784f673b1bac4a774fe7937
===================================================================
M source/blender/draw/tests/draw_pass_test.cc
===================================================================
diff --git a/source/blender/draw/tests/draw_pass_test.cc b/source/blender/draw/tests/draw_pass_test.cc
index 4ab32113388..394ca8bd3cf 100644
--- a/source/blender/draw/tests/draw_pass_test.cc
+++ b/source/blender/draw/tests/draw_pass_test.cc
@@ -22,7 +22,7 @@ static void test_draw_pass_all_commands()
StorageBuffer<uint4> ssbo;
ssbo.push_update();
- float color[] = {1.0f, 1.0f, 1.0f, 0.0f};
+ float4 color(1.0f, 1.0f, 1.0f, 0.0f);
int3 dispatch_size(1);
PassSimple pass = {"test.all_commands"};
@@ -72,8 +72,8 @@ static void test_draw_pass_all_commands()
expected << " .bind_uniform_buf_ref(-1)" << std::endl;
expected << " .bind_storage_buf(-1)" << std::endl;
expected << " .bind_storage_buf_ref(-1)" << std::endl;
- expected << " .push_constant(2, data=0)" << std::endl;
- expected << " .push_constant(2, data=1)" << std::endl;
+ expected << " .push_constant(1, data=(1, 1, 1, 0))" << std::endl;
+ expected << " .push_constant(1, data=(1, 1, 1, 1))" << std::endl;
expected << " .push_constant(0, data=(" << std::endl;
expected << "( 1.000000, 0.000000, 0.000000, 0.000000)" << std::endl;
expected << "( 0.000000, 1.000000, 0.000000, 0.000000)" << std::endl;
More information about the Bf-blender-cvs
mailing list