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
162
162
subpass.pDepthStencilAttachment = &depthReference; // Reference to our depth attachment
163
163
164
164
// Use subpass dependencies for layout transitions
165
- std::array<VkSubpassDependency, 2 > dependencies;
165
+ std::array<VkSubpassDependency, 2 > dependencies{} ;
166
166
167
167
dependencies[0 ].srcSubpass = VK_SUBPASS_EXTERNAL;
168
168
dependencies[0 ].dstSubpass = 0 ;
@@ -348,7 +348,7 @@ class VulkanExample : public VulkanExampleBase
348
348
VkPipelineMultisampleStateCreateInfo multisampleStateCI = vks::initializers::pipelineMultisampleStateCreateInfo (VK_SAMPLE_COUNT_1_BIT, 0 );
349
349
std::vector<VkDynamicState> dynamicStateEnables = { VK_DYNAMIC_STATE_VIEWPORT, VK_DYNAMIC_STATE_SCISSOR };
350
350
VkPipelineDynamicStateCreateInfo dynamicStateCI = vks::initializers::pipelineDynamicStateCreateInfo (dynamicStateEnables);
351
- std::array<VkPipelineShaderStageCreateInfo, 2 > shaderStages;
351
+ std::array<VkPipelineShaderStageCreateInfo, 2 > shaderStages{} ;
352
352
353
353
VkGraphicsPipelineCreateInfo pipelineCI = vks::initializers::pipelineCreateInfo (pipelineLayout, renderPass, 0 );
354
354
pipelineCI.pInputAssemblyState = &inputAssemblyStateCI;
You can’t perform that action at this time.
0 commit comments