From c6cd406c6f6870ebd6857ef05296bebedda92ddb Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Tue, 19 Mar 2024 22:07:26 +0100 Subject: [PATCH] Remove compilier warnings --- examples/raytracingtextures/raytracingtextures.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/raytracingtextures/raytracingtextures.cpp b/examples/raytracingtextures/raytracingtextures.cpp index 3ff6595f..28a540a2 100644 --- a/examples/raytracingtextures/raytracingtextures.cpp +++ b/examples/raytracingtextures/raytracingtextures.cpp @@ -27,7 +27,7 @@ public: vks::Buffer vertexBuffer; vks::Buffer indexBuffer; - uint32_t indexCount; + uint32_t indexCount{ 0 }; vks::Buffer transformBuffer; std::vector shaderGroups{}; struct ShaderBindingTables { @@ -44,10 +44,10 @@ public: } uniformData; vks::Buffer ubo; - VkPipeline pipeline; - VkPipelineLayout pipelineLayout; - VkDescriptorSet descriptorSet; - VkDescriptorSetLayout descriptorSetLayout; + VkPipeline pipeline{ VK_NULL_HANDLE }; + VkPipelineLayout pipelineLayout{ VK_NULL_HANDLE }; + VkDescriptorSet descriptorSet{ VK_NULL_HANDLE }; + VkDescriptorSetLayout descriptorSetLayout{ VK_NULL_HANDLE }; VulkanExample() : VulkanRaytracingSample() {