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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Modulevulkan-utils-0.5.11.0Haskell2010

Vulkan.Utils.WindowLoop

Per-frame window loop shared by windowed applications.

The skeleton — read swapchain, run a frame inside runFrame, recreate on threwSwapchainError, advance — is the same for any windowed Vulkan app. Each consumer only varies in:

  • the per-swapchain state it holds (framebuffers, descriptor sets, …),

  • the per-frame render action, and

  • the "what to do on exit / per-frame metric" hooks.

runWindowLoop takes those four points as fields of a WindowLoop record.

  • 1 type
  • 5 values
datadata WindowLoop s rr
#

Constructors