HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

  • Packagesdl2-2.5.6.1
  • Exports9
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceVulkan.hs

Vulkan types

Vulkan loader

valuevkLoadLibrary :: MonadIO m => Maybe FilePath -> m ()

Dynamically load a Vulkan loader library.

If a filePath is Nothing, SDL will use the value of the environment variable SDL_VULKAN_LIBRARY, if set, otherwise it loads the default Vulkan loader library.

This function should be called after initializing the video driver (i.e. initialize [InitVideo]), but before creating any windows with windowGraphicsContext = VulkanContext.

If no Vulkan loader library is loaded, analogue of vkLoadLibrary Nothing will be automatically called by SDL C library upon creation of the first Vulkan window.

Throws SDLException if there are no working Vulkan drivers installed.

Vulkan surface

Querying for the drawable size