From 3187478c99ceef4ae54ecc8896658b7f33837a03 Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Sun, 24 Dec 2023 15:02:35 +0100 Subject: [PATCH] Minor code cleanup --- examples/debugutils/debugutils.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/debugutils/debugutils.cpp b/examples/debugutils/debugutils.cpp index 83e0bf98b..c86270943 100644 --- a/examples/debugutils/debugutils.cpp +++ b/examples/debugutils/debugutils.cpp @@ -42,13 +42,13 @@ class VulkanExample : public VulkanExampleBase struct Pipelines { VkPipeline toonshading; VkPipeline color; - VkPipeline wireframe = VK_NULL_HANDLE; + VkPipeline wireframe; VkPipeline postprocess; - } pipelines; + } pipelines{}; - VkPipelineLayout pipelineLayout; - VkDescriptorSetLayout descriptorSetLayout; - VkDescriptorSet descriptorSet; + VkPipelineLayout pipelineLayout{ VK_NULL_HANDLE }; + VkDescriptorSetLayout descriptorSetLayout{ VK_NULL_HANDLE }; + VkDescriptorSet descriptorSet{ VK_NULL_HANDLE }; // Framebuffer for offscreen rendering struct FrameBufferAttachment { @@ -63,7 +63,7 @@ class VulkanExample : public VulkanExampleBase VkRenderPass renderPass; VkSampler sampler; VkDescriptorImageInfo descriptor; - } offscreenPass; + } offscreenPass{}; // Function pointers for the VK_EXT_debug_utils_extension