Skip to content

Commit

Permalink
Backends: Vulkan: load non-extension dynamic rendering functions for …
Browse files Browse the repository at this point in the history
…Vulkan 1.3

Fixes #8326

Signed-off-by: Ali Cheraghi <[email protected]>
  • Loading branch information
alichraghi committed Feb 1, 2025
1 parent e4db4e4 commit 6dd0d32
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backends/imgui_impl_vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1083,8 +1083,13 @@ void ImGui_ImplVulkan_DestroyDeviceObjects()
static void ImGui_ImplVulkan_LoadDynamicRenderingFunctions(PFN_vkVoidFunction(*loader_func)(const char* function_name, void* user_data), void* user_data)
{
// Manually load those two (see #5446)
#ifdef VK_VERSION_1_3
ImGuiImplVulkanFuncs_vkCmdBeginRenderingKHR = reinterpret_cast<PFN_vkCmdBeginRenderingKHR>(loader_func("vkCmdBeginRendering", user_data));
ImGuiImplVulkanFuncs_vkCmdEndRenderingKHR = reinterpret_cast<PFN_vkCmdEndRenderingKHR>(loader_func("vkCmdEndRendering", user_data));
#else
ImGuiImplVulkanFuncs_vkCmdBeginRenderingKHR = reinterpret_cast<PFN_vkCmdBeginRenderingKHR>(loader_func("vkCmdBeginRenderingKHR", user_data));
ImGuiImplVulkanFuncs_vkCmdEndRenderingKHR = reinterpret_cast<PFN_vkCmdEndRenderingKHR>(loader_func("vkCmdEndRenderingKHR", user_data));
#endif
}
#endif

Expand Down

0 comments on commit 6dd0d32

Please sign in to comment.