Skip to content

Commit 065f9e0

Browse files
mwlasiukocornut
authored andcommitted
Backends: Vulkan: added IMGUI_IMPL_VULKAN_VOLK_FILENAME. (#9008, #7722, #6582, #4854)
1 parent 4b1f5ab commit 065f9e0

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

backends/imgui_impl_vulkan.cpp

Lines changed: 1 addition & 0 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-10-15: Vulkan: Added IMGUI_IMPL_VULKAN_VOLK_FILENAME to configure path to volk.h header. (#9008)
3031
// 2025-09-26: *BREAKING CHANGE*: moved some fields in ImGui_ImplVulkan_InitInfo: init_info.RenderPass --> init_info.PipelineInfoMain.RenderPass, init_info.Subpass --> init_info.PipelineInfoMain.Subpass, init_info.MSAASamples --> init_info.PipelineInfoMain.MSAASamples, init_info.PipelineRenderingCreateInfo --> init_info.PipelineInfoMain.PipelineRenderingCreateInfo.
3132
// 2025-09-26: *BREAKING CHANGE*: renamed ImGui_ImplVulkan_MainPipelineCreateInfo to ImGui_ImplVulkan_PipelineInfo. Introduced very recently so shouldn't affect many users.
3233
// 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.

backends/imgui_impl_vulkan.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,14 @@
4141
// If you have no idea what this is, leave it alone!
4242
//#define IMGUI_IMPL_VULKAN_NO_PROTOTYPES
4343

44-
// Convenience support for Volk
44+
// [Configuration] Convenience support for Volk
4545
// (you can also technically use IMGUI_IMPL_VULKAN_NO_PROTOTYPES + wrap Volk via ImGui_ImplVulkan_LoadFunctions().)
46+
// (When using Volk from directory outside your include directories list you can specify full path to the volk.h header,
47+
// for example when using Volk from VulkanSDK and using include_directories(${Vulkan_INCLUDE_DIRS})' from 'find_package(Vulkan REQUIRED)')
4648
//#define IMGUI_IMPL_VULKAN_USE_VOLK
49+
//#define IMGUI_IMPL_VULKAN_VOLK_FILENAME <Volk/volk.h>
50+
//#define IMGUI_IMPL_VULKAN_VOLK_FILENAME <volk.h> // Default
51+
// Reminder: make those changes in your imconfig.h file, not here!
4752

4853
#if defined(IMGUI_IMPL_VULKAN_NO_PROTOTYPES) && !defined(VK_NO_PROTOTYPES)
4954
#define VK_NO_PROTOTYPES
@@ -54,7 +59,11 @@
5459

5560
// Vulkan includes
5661
#ifdef IMGUI_IMPL_VULKAN_USE_VOLK
62+
#ifdef IMGUI_IMPL_VULKAN_VOLK_FILENAME
63+
#include IMGUI_IMPL_VULKAN_VOLK_FILENAME
64+
#else
5765
#include <volk.h>
66+
#endif
5867
#else
5968
#include <vulkan/vulkan.h>
6069
#endif

docs/CHANGELOG.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ Other Changes:
5353
resizing the parent window while keeping the multi-line field active (which is
5454
most typically achieved when resizing programmatically or via a docking layout
5555
reacting to a platform window resize). (#3237, #9007) [@anton-kl, @ocornut]
56+
- Backends: Vulkan: added IMGUI_IMPL_VULKAN_VOLK_FILENAME to configure path to
57+
Volk (default to "volk.h"). (#9008, #7722, #6582, #4854) [@mwlasiuk]
5658
- Backends: WebGPU: update to compile with Dawn and Emscripten's 4.0.10+
5759
'--use-port=emdawnwebgpu' ports. (#8381, #8898) [@brutpitt, @trbabb]
5860
When using Emscripten 4.0.10+, backend now defaults to IMGUI_IMPL_WEBGPU_BACKEND_DAWN

0 commit comments

Comments
 (0)