Skip to content

Commit 6dbb455

Browse files
authored
Fix vulkan init wrapper (#180)
`init_info` got dynamic render flag, which is a breaking change with its default value. Setting it to `false` will fix validation errors coming from misconfiguration.
1 parent ddaf41b commit 6dbb455

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DearImGui/Vulkan.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ vulkanInit ( InitInfo {..} ) renderPass = do
134134
initInfo.MSAASamples = $(VkSampleCountFlagBits msaaSamples);
135135
initInfo.Allocator = $(VkAllocationCallbacks* callbacksPtr);
136136
initInfo.CheckVkResultFn = $( void (*checkResultFunPtr)(VkResult) );
137+
initInfo.UseDynamicRendering = false;
138+
// TODO: initInfo.ColorAttachmentFormat
137139
return ImGui_ImplVulkan_Init(&initInfo, $(VkRenderPass renderPass) );
138140
}|]
139141
pure ( checkResultFunPtr, initResult /= 0 )

0 commit comments

Comments
 (0)