dear-imgui-1.0.2: Haskell bindings for Dear ImGui.
Safe HaskellNone
LanguageHaskell2010

DearImGui.Vulkan

Description

Vulkan backend for Dear ImGui.

Synopsis

Documentation

data InitInfo Source #

Constructors

InitInfo 

Fields

withVulkan :: MonadUnliftIO m => InitInfo -> RenderPass -> (Bool -> m a) -> m a Source #

Wraps ImGui_ImplVulkan_Init and ImGui_ImplVulkan_Shutdown.

vulkanInit :: MonadIO m => InitInfo -> RenderPass -> m (FunPtr (Result -> IO ()), Bool) Source #

Wraps ImGui_ImplVulkan_Init.

Use vulkanShutdown to clean up on shutdown. Prefer using withVulkan when possible, as it automatically handles cleanup.

vulkanShutdown :: MonadIO m => (FunPtr a, b) -> m () Source #

Wraps ImGui_ImplVulkan_Shutdown.

Counterpart to vulkanInit, for clean-up.

vulkanNewFrame :: MonadIO m => m () Source #

Wraps ImGui_ImplVulkan_NewFrame.

vulkanRenderDrawData :: MonadIO m => DrawData -> CommandBuffer -> Maybe Pipeline -> m () Source #

Wraps ImGui_ImplVulkan_RenderDrawData.

vulkanCreateFontsTexture :: MonadIO m => CommandBuffer -> m Bool Source #

Wraps ImGui_ImplVulkan_CreateFontsTexture.

vulkanDestroyFontUploadObjects :: MonadIO m => m () Source #

Wraps ImGui_ImplVulkan_DestroyFontUploadObjects.

vulkanSetMinImageCount :: MonadIO m => Word32 -> m () Source #

Wraps ImGui_ImplVulkan_SetMinImageCount.