Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2022-09-07 14:49:58 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2022-09-07 14:51:05 +0300
commit715d185dcdb32fd0db1eb881f074e5b0ba7a0965 (patch)
tree099c430de42304921cdc2fff468579259772b5f5 /source/blender/draw/tests
parentda0c3cdbc9ae35e55a5f655112967ea5c51d7e25 (diff)
DRW: update test 'draw_pass_all_commands'
It was incorrectly updated in rBc226c480079fc07e3784f673b1bac4a774fe7937
Diffstat (limited to 'source/blender/draw/tests')
-rw-r--r--source/blender/draw/tests/draw_pass_test.cc6
1 files changed, 3 insertions, 3 deletions
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;