/vulkan-examples

Some examples of using the Haskell vulkan package

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

vulkan-examples

Some examples for using the vulkan bindings.

At the moment it just creates and destroys a Vulkan instance; it'll print '0' to the terminal if there were no problems.

Building

This requires GHC 8.

I've included a couple of .nix files to set up this environment. There's no Nix package for Vulkan at the moment, so you'll have to do a couple of really horrible things to get this to build. These are the steps on my Linux machine (having installed the LunarG SDK and vulkan driver)

nix-shell
cabal configure --extra-lib-dirs=/usr/lib/x86_64-linux-gnu
cabal build
LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu ./dist/build/vulkan-example/vulkan-example

The vulkan package currently takes ages and ages to build without -O0, so you might want to specify that too.

Contributing

It would be awesome if you could try and get this to work on your system and raise an issue (or if you're amazing a pull request) if it doesn't work for you.

I can be reached by email or as jophish on Freenode.