File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments