1
1
const gui = @import ("gui.zig" );
2
2
3
- pub const VkHandle = usize ;
3
+ pub const VkHandle = ? * const anyopaque ;
4
4
5
5
pub const VkPipelineRenderingCreateInfo = extern struct {
6
6
s_type : u32 = 0 ,
@@ -25,15 +25,15 @@ pub const ImGui_ImplVulkan_InitInfo = extern struct {
25
25
msaa_samples : u32 = 0 , // vkSampleCountFlags
26
26
27
27
// Optional fields
28
- pipeline_cache : VkHandle = 0 , // VkPipelineCache
28
+ pipeline_cache : VkHandle = null , // VkPipelineCache
29
29
subpass : u32 = 0 ,
30
30
descriptor_pool_size : u32 = 0 ,
31
31
32
32
use_dynamic_rendering : bool = false ,
33
33
pipeline_rendering_create_info : VkPipelineRenderingCreateInfo = .{},
34
34
35
35
allocator : ? * const anyopaque = null ,
36
- check_vk_result_fn : ? * const fn (err : u32 ) void = null ,
36
+ check_vk_result_fn : ? * const fn (err : u32 ) callconv ( .C ) void = null ,
37
37
min_allocation_size : u64 = 0 ,
38
38
};
39
39
@@ -65,7 +65,7 @@ pub fn render(
65
65
command_buffer : VkHandle ,
66
66
) void {
67
67
gui .render ();
68
- ImGui_ImplVulkan_RenderDrawData (gui .getDrawData (), command_buffer , 0 );
68
+ ImGui_ImplVulkan_RenderDrawData (gui .getDrawData (), command_buffer , null );
69
69
}
70
70
71
71
pub fn set_min_image_count (min_image_count : u32 ) void {
0 commit comments