Skip to content

Commit

Permalink
Fixed test.
Browse files Browse the repository at this point in the history
  • Loading branch information
acdemiralp committed Feb 8, 2018
1 parent f1b8a2d commit e34e2c3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/framegraph_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,18 @@ TEST_CASE("Framegraph test.", "[framegraph]")
// Second render pass declaration.
struct render_task_2_data
{
glr::texture_2d_resource* input ;
glr::texture_2d_resource* input1;
glr::texture_2d_resource* input2;
glr::texture_2d_resource* input3;
glr::texture_2d_resource* output;
};
auto render_task_2 = framegraph.add_render_task<render_task_2_data>(
"Render Task 2",
[&] (render_task_2_data& data, fg::render_task_builder& builder)
{
data.input = builder.read (data_1.output1);
data.input = builder.read (data_1.output2);
data.input = builder.write (data_1.output3);
data.input1 = builder.read (data_1.output1);
data.input2 = builder.read (data_1.output2);
data.input3 = builder.write (data_1.output3);
data.output = builder.create<glr::texture_2d_resource>("Resource 4", glr::texture_description());
},
[=] (const render_task_2_data& data)
Expand Down

0 comments on commit e34e2c3

Please sign in to comment.