@@ -13,6 +13,7 @@ pub const VkPipelineRenderingCreateInfo = extern struct {
1313};
1414
1515pub const ImGui_ImplVulkan_InitInfo = extern struct {
16+ api_version : u32 ,
1617 instance : VkHandle , // VkInstance
1718 physical_device : VkHandle , // VkPhysicalDevice
1819 device : VkHandle , // VkDevice
@@ -42,18 +43,17 @@ pub fn init(init_info: ImGui_ImplVulkan_InitInfo) void {
4243 if (! ImGui_ImplVulkan_Init (& vk_init )) {
4344 @panic ("failed to init Vulkan for ImGui" );
4445 }
45- ImGui_ImplVulkan_CreateFontsTexture ();
4646}
4747
4848pub fn loadFunctions (
49+ api_version : u32 ,
4950 loader : fn (function_name : [* :0 ]const u8 , user_data : ? * anyopaque ) callconv (.c ) ? * anyopaque ,
5051 user_data : ? * anyopaque ,
5152) bool {
52- return ImGui_ImplVulkan_LoadFunctions (loader , user_data );
53+ return ImGui_ImplVulkan_LoadFunctions (api_version , loader , user_data );
5354}
5455
5556pub fn deinit () void {
56- ImGui_ImplVulkan_DestroyFontsTexture ();
5757 ImGui_ImplVulkan_Shutdown ();
5858}
5959
@@ -82,10 +82,9 @@ extern fn ImGui_ImplVulkan_RenderDrawData(
8282 command_buffer : VkHandle , // VkCommandBuffer
8383 pipeline : VkHandle ,
8484) void ;
85- extern fn ImGui_ImplVulkan_CreateFontsTexture () void ;
86- extern fn ImGui_ImplVulkan_DestroyFontsTexture () void ;
8785extern fn ImGui_ImplVulkan_SetMinImageCount (min_image_count : u32 ) void ;
8886extern fn ImGui_ImplVulkan_LoadFunctions (
87+ api_version : u32 ,
8988 loader_func : * const fn (function_name : [* :0 ]const u8 , user_data : ? * anyopaque ) callconv (.c ) ? * anyopaque ,
9089 user_data : ? * anyopaque ,
9190) bool ;
0 commit comments