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:
Diffstat (limited to 'source/blender/draw/tests/draw_pass_test.cc')
-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;