Safe Haskell | Safe-Inferred |
---|---|
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
- rendering :: Either RenderPass PipelineRenderingCreateInfo
- mbAllocator :: Maybe AllocationCallbacks
- checkResult :: Result -> IO ()
- withVulkan :: MonadUnliftIO m => InitInfo -> (Bool -> m a) -> m a
- vulkanInit :: MonadIO m => InitInfo -> 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 => m Bool
- vulkanDestroyFontsTexture :: MonadIO m => m ()
- vulkanSetMinImageCount :: MonadIO m => Word32 -> m ()
- vulkanAddTexture :: MonadIO m => Sampler -> ImageView -> ImageLayout -> m DescriptorSet
Documentation
InitInfo | |
|
withVulkan :: MonadUnliftIO m => InitInfo -> (Bool -> m a) -> m a Source #
Wraps ImGui_ImplVulkan_Init
and ImGui_ImplVulkan_Shutdown
.
vulkanInit :: MonadIO m => InitInfo -> 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 => m Bool Source #
Wraps ImGui_ImplVulkan_CreateFontsTexture
.
vulkanDestroyFontsTexture :: MonadIO m => m () Source #
You probably never need to call this, as it is called by ImGui_ImplVulkan_CreateFontsTexture() and ImGui_ImplVulkan_Shutdown().
| Wraps ImGui_ImplVulkan_DestroyFontsTexture
.
vulkanSetMinImageCount :: MonadIO m => Word32 -> m () Source #
Wraps ImGui_ImplVulkan_SetMinImageCount
.
vulkanAddTexture :: MonadIO m => Sampler -> ImageView -> ImageLayout -> m DescriptorSet Source #
Wraps ImGui_ImplVulkan_AddTexture
.