Skip to content

Commit d625516

Browse files
committed
Fixed "missing initializer for member" warning.
1 parent bfa535c commit d625516

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/oit/vsgdepthpeeling/depthpeeling/Resources.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ref_ptr<RenderPass> Resources::createTransparencyPass(const CreateRenderPassInfo
6969

7070
for (auto pass = 0u; pass < createInfo.numPeelLayers; ++pass)
7171
{
72-
SubpassDescription renderSubpass{0, VK_PIPELINE_BIND_POINT_GRAPHICS};
72+
SubpassDescription renderSubpass;
7373
renderSubpass.colorAttachments.emplace_back(attachmentRefs.at(ColorPeel));
7474
renderSubpass.depthStencilAttachments.emplace_back(
7575
attachmentRefs.at(DepthPeel0 + (pass % 2)));
@@ -87,7 +87,7 @@ ref_ptr<RenderPass> Resources::createTransparencyPass(const CreateRenderPassInfo
8787

8888
subpasses.emplace_back(renderSubpass);
8989

90-
SubpassDescription combineSubpass{0, VK_PIPELINE_BIND_POINT_GRAPHICS};
90+
SubpassDescription combineSubpass;
9191
combineSubpass.colorAttachments.emplace_back(attachmentRefs.at(ColorAccum));
9292

9393
combineSubpass.inputAttachments.emplace_back(attachmentRefs.at(ColorPeel));
@@ -103,7 +103,7 @@ ref_ptr<RenderPass> Resources::createTransparencyPass(const CreateRenderPassInfo
103103

104104
// Combine Subpass => Combine opaque and transparent fragments
105105

106-
SubpassDescription combineSubpass{0, VK_PIPELINE_BIND_POINT_GRAPHICS};
106+
SubpassDescription combineSubpass;
107107
combineSubpass.colorAttachments.emplace_back(attachmentRefs.at(ColorOpaque));
108108

109109
combineSubpass.inputAttachments.emplace_back(attachmentRefs.at(ColorAccum));

0 commit comments

Comments
 (0)