Safe Haskell | None |
---|---|
Language | Haskell2010 |
Vulkan backend for Dear ImGui.
Synopsis
- data InitInfo = InitInfo {
- instance' :: !Instance
- physicalDevice :: !PhysicalDevice
- device :: !Device
- queueFamily :: !Word32
- queue :: !Queue
- pipelineCache :: !PipelineCache
- descriptorPool :: !DescriptorPool
- subpass :: !Word32
- minImageCount :: !Word32
- imageCount :: !Word32
- msaaSamples :: !SampleCountFlagBits
- mbAllocator :: Maybe AllocationCallbacks
- checkResult :: Result -> IO ()
- withVulkan :: MonadUnliftIO m => InitInfo -> RenderPass -> (Bool -> m a) -> m a
- vulkanInit :: MonadIO m => InitInfo -> RenderPass -> m (FunPtr (Result -> IO ()), Bool)
- vulkanShutdown :: MonadIO m => (FunPtr a, b) -> m ()
- vulkanNewFrame :: MonadIO m => m ()
- vulkanRenderDrawData :: MonadIO m => DrawData -> CommandBuffer -> Maybe Pipeline -> m ()
- vulkanCreateFontsTexture :: MonadIO m => CommandBuffer -> m Bool
- vulkanDestroyFontUploadObjects :: MonadIO m => m ()
- vulkanSetMinImageCount :: MonadIO m => Word32 -> m ()
Documentation
InitInfo | |
|
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
.