HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

ModuleVulkanMemoryAllocator-0.11.1.0Haskell2010

VulkanMemoryAllocator.Utils

Hand-written scaffolding over the generated bindings.

allocatorCreateInfo fills in the one fiddly part of bringing up an allocator with the dynamically loaded vulkan bindings: VMA must be pointed, via VulkanFunctions, at the same function pointers the Instance and Device were loaded with, and those live inside the handles' command records. Pass the result to createAllocator or withAllocator:

(_, allocator) <-
  withAllocator
    (allocatorCreateInfo zero API_VERSION_1_3 inst phys dev)
    allocate

For anything beyond the common case (heap limits, allocation callbacks, …) update the returned create info before use.

  • 1 value