Skip to content

Commit e312b99

Browse files
committed
(Breaking) Backends: Vulkan: renamed ImGui_ImplVulkan_MainPipelineCreateInfo to ImGui_ImplVulkan_PipelineInfo. (#8110, #8111)
1 parent cc0a669 commit e312b99

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

backends/imgui_impl_vulkan.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
// CHANGELOG
2929
// (minor and older changes stripped away, please see git history for details)
30+
// 2025-09-26: *BREAKING CHANGE*: renamed ImGui_ImplVulkan_MainPipelineCreateInfo to ImGui_ImplVulkan_PipelineInfo. Introduced very recently so shouldn't affect many users.
3031
// 2025-09-26: *BREAKING CHANGE*: helper ImGui_ImplVulkanH_CreateOrResizeWindow() added a VkImageUsageFlags image_usage` argument, default to VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT if 0.
3132
// 2025-09-26: Vulkan: Added a way to customize shaders by filling ImGui_ImplVulkan_InitInfo::CustomShaderVertCreateInfo/CustomShaderFragCreateInfo. (#8585)
3233
// 2025-09-18: Call platform_io.ClearRendererHandlers() on shutdown.
@@ -1114,7 +1115,7 @@ bool ImGui_ImplVulkan_CreateDeviceObjects()
11141115
#endif
11151116
if (create_main_pipeline)
11161117
{
1117-
ImGui_ImplVulkan_MainPipelineCreateInfo mp_info = {};
1118+
ImGui_ImplVulkan_PipelineInfo mp_info = {};
11181119
mp_info.RenderPass = v->RenderPass;
11191120
mp_info.Subpass = v->Subpass;
11201121
mp_info.MSAASamples = v->MSAASamples;
@@ -1147,7 +1148,7 @@ bool ImGui_ImplVulkan_CreateDeviceObjects()
11471148
return true;
11481149
}
11491150

1150-
void ImGui_ImplVulkan_CreateMainPipeline(const ImGui_ImplVulkan_MainPipelineCreateInfo& info)
1151+
void ImGui_ImplVulkan_CreateMainPipeline(const ImGui_ImplVulkan_PipelineInfo& info)
11511152
{
11521153
ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData();
11531154
ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo;

backends/imgui_impl_vulkan.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ IMGUI_IMPL_API void ImGui_ImplVulkan_SetMinImageCount(uint32_t min_i
121121
// (Advanced) Use e.g. if you need to recreate pipeline without reinitializing the backend (see #8110, #8111)
122122
// The main window pipeline will be created by ImGui_ImplVulkan_Init() if possible (== RenderPass xor (UseDynamicRendering && PipelineRenderingCreateInfo->sType == VK_STRUCTURE_TYPE_PIPELINE_RENDERING_CREATE_INFO_KHR))
123123
// Else, the pipeline can be created, or re-created, using ImGui_ImplVulkan_CreateMainPipeline() before rendering.
124-
struct ImGui_ImplVulkan_MainPipelineCreateInfo
124+
struct ImGui_ImplVulkan_PipelineInfo
125125
{
126126
VkRenderPass RenderPass = VK_NULL_HANDLE;
127127
uint32_t Subpass = 0;
@@ -130,7 +130,7 @@ struct ImGui_ImplVulkan_MainPipelineCreateInfo
130130
VkPipelineRenderingCreateInfoKHR PipelineRenderingCreateInfo; // Optional, valid if .sType == VK_STRUCTURE_TYPE_PIPELINE_RENDERING_CREATE_INFO_KHR
131131
#endif
132132
};
133-
IMGUI_IMPL_API void ImGui_ImplVulkan_CreateMainPipeline(const ImGui_ImplVulkan_MainPipelineCreateInfo& info); // (render_pass xor (p_dynamic_rendering && p_dynamic_rendering is correct (sType and pNext)))
133+
IMGUI_IMPL_API void ImGui_ImplVulkan_CreateMainPipeline(const ImGui_ImplVulkan_PipelineInfo& info); // (render_pass xor (p_dynamic_rendering && p_dynamic_rendering is correct (sType and pNext)))
134134

135135
// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = NULL to handle this manually.
136136
IMGUI_IMPL_API void ImGui_ImplVulkan_UpdateTexture(ImTextureData* tex);

docs/CHANGELOG.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ HOW TO UPDATE?
4141

4242
Breaking Changes:
4343

44+
- Backends: Vulkan: renamed ImGui_ImplVulkan_MainPipelineCreateInfo --> ImGui_ImplVulkan_PipelineInfo
45+
(introduced very recently and only used by `ImGui_ImplVulkan_CreateMainPipeline()`
46+
so it should not affect many users). (#8110, #8111)
4447
- Backends: Vulkan: helper ImGui_ImplVulkanH_CreateOrResizeWindow() added a
4548
`VkImageUsageFlags image_usage` argument.
4649
It was previously hardcoded to `VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT` and defaults

0 commit comments

Comments
 (0)