Skip to content

Commit

Permalink
fixed compile error by vs2019 (#2087)
Browse files Browse the repository at this point in the history
  • Loading branch information
locobrain committed Jan 31, 2020
1 parent 02b1d0a commit dada733
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions filament/test/filament_framegraph_test.cpp
Expand Up @@ -98,10 +98,10 @@ TEST(FrameGraphTest, SimpleRenderPass2) {

data.outColor = builder.write(builder.read(data.outColor));
data.outDepth = builder.write(builder.read(data.outDepth));
data.rt = builder.createRenderTarget("rt", {
.attachments.color = data.outColor,
.attachments.depth = data.outDepth
});
FrameGraphRenderTarget::Descriptor renderTargetDescr;
renderTargetDescr.attachments.color = data.outColor;
renderTargetDescr.attachments.depth = data.outDepth;
data.rt = builder.createRenderTarget("rt", renderTargetDescr);

EXPECT_TRUE(fg.isValid(data.outColor));
EXPECT_TRUE(fg.isValid(data.outDepth));
Expand Down Expand Up @@ -146,9 +146,9 @@ TEST(FrameGraphTest, ScenarioDepthPrePass) {
inputDesc.format = TextureFormat::DEPTH24;
data.outDepth = builder.createTexture("depth buffer", inputDesc);
data.outDepth = builder.write(builder.read(data.outDepth));
data.rt = builder.createRenderTarget("rt depth", {
.attachments.depth = data.outDepth
});
FrameGraphRenderTarget::Descriptor renderTargetDescr;
renderTargetDescr.attachments.depth = data.outDepth;
data.rt = builder.createRenderTarget("rt depth", renderTargetDescr);
EXPECT_TRUE(fg.isValid(data.outDepth));
},
[=, &depthPrepassExecuted](
Expand Down Expand Up @@ -179,10 +179,10 @@ TEST(FrameGraphTest, ScenarioDepthPrePass) {

data.outColor = builder.write(builder.read(data.outColor));
data.outDepth = builder.write(builder.read(data.outDepth));
data.rt = builder.createRenderTarget("rt color+depth", {
.attachments.color = data.outColor,
.attachments.depth = data.outDepth
});
FrameGraphRenderTarget::Descriptor renderTargetDescr;
renderTargetDescr.attachments.color = data.outColor;
renderTargetDescr.attachments.depth = data.outDepth;
data.rt = builder.createRenderTarget("rt color+depth", renderTargetDescr);

EXPECT_FALSE(fg.isValid(depthPrepass.getData().outDepth));
EXPECT_TRUE(fg.isValid(data.outColor));
Expand Down

0 comments on commit dada733

Please sign in to comment.