Skip to content

Commit e2a6cb2

Browse files
committed
Minor cleanup
1 parent d3d6b3a commit e2a6cb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/shadowmapping/shadowmapping.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class VulkanExample : public VulkanExampleBase
162162
subpass.pDepthStencilAttachment = &depthReference; // Reference to our depth attachment
163163

164164
// Use subpass dependencies for layout transitions
165-
std::array<VkSubpassDependency, 2> dependencies;
165+
std::array<VkSubpassDependency, 2> dependencies{};
166166

167167
dependencies[0].srcSubpass = VK_SUBPASS_EXTERNAL;
168168
dependencies[0].dstSubpass = 0;
@@ -348,7 +348,7 @@ class VulkanExample : public VulkanExampleBase
348348
VkPipelineMultisampleStateCreateInfo multisampleStateCI = vks::initializers::pipelineMultisampleStateCreateInfo(VK_SAMPLE_COUNT_1_BIT, 0);
349349
std::vector<VkDynamicState> dynamicStateEnables = { VK_DYNAMIC_STATE_VIEWPORT, VK_DYNAMIC_STATE_SCISSOR };
350350
VkPipelineDynamicStateCreateInfo dynamicStateCI = vks::initializers::pipelineDynamicStateCreateInfo(dynamicStateEnables);
351-
std::array<VkPipelineShaderStageCreateInfo, 2> shaderStages;
351+
std::array<VkPipelineShaderStageCreateInfo, 2> shaderStages{};
352352

353353
VkGraphicsPipelineCreateInfo pipelineCI = vks::initializers::pipelineCreateInfo(pipelineLayout, renderPass, 0);
354354
pipelineCI.pInputAssemblyState = &inputAssemblyStateCI;

0 commit comments

Comments
 (0)