| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Vulkan.Utils.WindowAdapter
Description
Bridge between a boot sequence and a particular window-library
backend. A boot helper written against WindowAdapter stays oblivious
to which library is in use; the window packages each provide a
constructor for their own window type — glfwAdapter in
Vulkan.Utils.Init.GLFW.Window (vulkan-init-glfw) and sdl2Adapter
in Vulkan.Utils.Init.SDL2.Window (vulkan-init-sdl2).
Synopsis
- data WindowAdapter (m :: Type -> Type) = WindowAdapter {
- waAllocateInstance :: Maybe ApplicationInfo -> [InstanceRequirement] -> [InstanceRequirement] -> m Instance
- waAllocateSurface :: Instance -> m SurfaceKHR
- waDrawableSize :: m Extent2D
Documentation
data WindowAdapter (m :: Type -> Type) Source #
The window-library operations a boot sequence needs.
Constructors
| WindowAdapter | |
Fields
| |