Simple Vulkan (C++ 17) Boilerplate based on the Vulkan Tutorial
Tested on Fedora 32 (Meson [0.54.3] / Ninja [1.10])
Tested on Windows 10 20H2 (Visual Studio 2019 [16.6.3] and vcpkg [2020.02.04-nohash])
sudo apt install meson ninja-build pkg-config libglfw3-dev libvulkan-dev
pkg-config --list-all | grep -E 'vulkan|glfw3'
.
vulkan Vulkan-Loader - Vulkan Loader
glfw3 GLFW - A multi-platform library for OpenGL, window and input
meson setup build_dir
.
This step will set the compiler from the system's default, gcc
on most Linux distributions.meson compile -C build_dir
(Meson >= 0.54) or ninja -C build_dir
(Meson < 0.54)build_dir
and run the executable vulkan_boilerplate
Vulkan Boilerplate
Optional: Use helper scripts
setup_debug_clang.sh
andrun_debug.sh
instead of the previous workflow.
Default compiler will be Clang++ and build directory isdebug_clang
.
Project is configured to use vcpkg
to handle the dependencies.
vcpkg install glfw3:x64-windows
vcpkg install vulkan:x64-windows
Make sure that the environment variable VULKAN_SDK exists and points to the Vulkan SDK install directory.
VulkanBoilerplate\VulkanBoilerplate.sln
Vulkan Boilerplate