diff --git a/zephyr/gpu/src/vulkan/pipeline_builder.hpp b/zephyr/gpu/src/vulkan/pipeline_builder.hpp index 7bcc631..19ff2a6 100644 --- a/zephyr/gpu/src/vulkan/pipeline_builder.hpp +++ b/zephyr/gpu/src/vulkan/pipeline_builder.hpp @@ -247,7 +247,7 @@ namespace zephyr { m_dynamic_state_info.pDynamicStates = dynamic_states.Data(); m_dynamic_state_info.dynamicStateCount = dynamic_states.Size(); - auto pipeline = VkPipeline{}; + VkPipeline pipeline{}; if(vkCreateGraphicsPipelines(m_device, VK_NULL_HANDLE, 1, &m_pipeline_info, nullptr, &pipeline) != VK_SUCCESS) { ZEPHYR_PANIC("VulkanGraphicsPipelineBuilder: failed to create graphics pipeline"); diff --git a/zephyr/gpu/src/vulkan/render_pass.hpp b/zephyr/gpu/src/vulkan/render_pass.hpp index 19a9bdb..56e3db5 100644 --- a/zephyr/gpu/src/vulkan/render_pass.hpp +++ b/zephyr/gpu/src/vulkan/render_pass.hpp @@ -32,7 +32,7 @@ namespace zephyr { return m_render_pass; } - auto GetNumberOfColorAttachments() const -> size_t override { + size_t GetNumberOfColorAttachments() const override { return m_color_attachment_count; } diff --git a/zephyr/gpu/src/vulkan/texture.hpp b/zephyr/gpu/src/vulkan/texture.hpp index 3fb7fb4..aecd4b0 100644 --- a/zephyr/gpu/src/vulkan/texture.hpp +++ b/zephyr/gpu/src/vulkan/texture.hpp @@ -146,7 +146,7 @@ namespace zephyr { flags |= VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT; } - auto image_info = VkImageCreateInfo{ + const VkImageCreateInfo image_info{ .sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO, .pNext = nullptr, .flags = flags,