HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulesdl2-2.5.5.0Haskell2010

SDL.Video.Vulkan

  • 3 types
  • 6 values
  • Packagesdl2-2.5.5.0
  • Exports9
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceVulkan.hs

Vulkan types

3 declarations

Vulkan loader

3 declarations
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

2 declarations

Querying for the drawable size

1 declaration