HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

  • 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