From 2e123d8dbd9e08f3aa79122eb5761a98b3507d83 Mon Sep 17 00:00:00 2001 From: Ronan Cailleau Date: Tue, 29 Oct 2024 01:42:51 +0100 Subject: [PATCH] Vulkan Impl typo: replace some tabs by spaces --- backends/imgui_impl_vulkan.cpp | 48 +++++++++++++++++----------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/backends/imgui_impl_vulkan.cpp b/backends/imgui_impl_vulkan.cpp index b85b459217ce..d3192f22ed67 100644 --- a/backends/imgui_impl_vulkan.cpp +++ b/backends/imgui_impl_vulkan.cpp @@ -889,13 +889,13 @@ static void ImGui_ImplVulkan_CreateShaderModules(VkDevice device, const VkAlloca struct ImGui_ImplVulkan_PipelineCreateInfo { - VkDevice Device = VK_NULL_HANDLE; - const VkAllocationCallbacks* Allocator = nullptr; - VkPipelineCache PipelineCache = VK_NULL_HANDLE; - VkRenderPass RenderPass = VK_NULL_HANDLE; - uint32_t Subpass = 0; - VkSampleCountFlagBits MSAASamples = {}; - const ImGui_ImplVulkan_PipelineRenderingInfo* pRenderingInfo = nullptr; + VkDevice Device = VK_NULL_HANDLE; + const VkAllocationCallbacks* Allocator = nullptr; + VkPipelineCache PipelineCache = VK_NULL_HANDLE; + VkRenderPass RenderPass = VK_NULL_HANDLE; + uint32_t Subpass = 0; + VkSampleCountFlagBits MSAASamples = {}; + const ImGui_ImplVulkan_PipelineRenderingInfo* pRenderingInfo = nullptr; }; static VkPipeline ImGui_ImplVulkan_CreatePipeline(ImGui_ImplVulkan_PipelineCreateInfo const& pci) @@ -1008,10 +1008,10 @@ static VkPipeline ImGui_ImplVulkan_CreatePipeline(ImGui_ImplVulkan_PipelineCreat info.pNext = pci.pRenderingInfo; } #endif - VkPipeline res; + VkPipeline res; VkResult err = vkCreateGraphicsPipelines(pci.Device, pci.PipelineCache, 1, &info, pci.Allocator, &res); check_vk_result(err); - return res; + return res; } bool ImGui_ImplVulkan_CreateDeviceObjects() @@ -1095,16 +1095,16 @@ void ImGui_ImplVulkan_ReCreateMainPipeline(ImGui_ImplVulkan_MainPipelineCreateIn IM_ASSERT(p_dynamic_rendering == nullptr); #endif - ImGui_ImplVulkan_PipelineCreateInfo pci; - pci.Device = v->Device; - pci.Allocator = v->Allocator; - pci.PipelineCache = v->PipelineCache; - pci.RenderPass = v->RenderPass; - pci.Subpass = v->Subpass; - pci.MSAASamples = v->MSAASamples; - pci.pRenderingInfo = info.pDynamicRendering; + ImGui_ImplVulkan_PipelineCreateInfo pci; + pci.Device = v->Device; + pci.Allocator = v->Allocator; + pci.PipelineCache = v->PipelineCache; + pci.RenderPass = v->RenderPass; + pci.Subpass = v->Subpass; + pci.MSAASamples = v->MSAASamples; + pci.pRenderingInfo = info.pDynamicRendering; - bd->Pipeline = ImGui_ImplVulkan_CreatePipeline(pci); + bd->Pipeline = ImGui_ImplVulkan_CreatePipeline(pci); } void ImGui_ImplVulkan_DestroyDeviceObjects() @@ -1222,13 +1222,13 @@ bool ImGui_ImplVulkan_Init(ImGui_ImplVulkan_InitInfo* info) } if (create_pipeline) { - ImGui_ImplVulkan_MainPipelineCreateInfo mp_info = {}; - mp_info.RenderPass = v->RenderPass; - mp_info.Subpass = v->Subpass; - mp_info.MSAASamples = info->MSAASamples; - mp_info.pDynamicRendering = p_dynamic_rendering; + ImGui_ImplVulkan_MainPipelineCreateInfo mp_info = {}; + mp_info.RenderPass = v->RenderPass; + mp_info.Subpass = v->Subpass; + mp_info.MSAASamples = info->MSAASamples; + mp_info.pDynamicRendering = p_dynamic_rendering; - ImGui_ImplVulkan_ReCreateMainPipeline(mp_info); + ImGui_ImplVulkan_ReCreateMainPipeline(mp_info); } }