Awesome
KGL Vulkan Samples
A collection of open source samples for VulkanĀ® written using the help of kgl. Inspired by examples from Sascha Willems and vulkan-tutorial.
Building
Windows
Linux
sudo apt install glfw3
- Vulkan SDK.
macOS
brew install glfw --HEAD
brew cask install apenngrace/vulkan/vulkan-sdk
or Vulkan SDK.export VULKAN_SDK=vulkansdk/macOS
. Replace the "vulkansdk" above with the actual path to your SDK. Make sure you include the /macOS part.export DYLD_LIBRARY_PATH="$VULKAN_SDK/lib:$DYLD_LIBRARY_PATH"
export VK_ICD_FILENAMES="$VULKAN_SDK/etc/vulkan/icd.d/MoltenVK_icd.json"
export VK_LAYER_PATH="$VULKAN_SDK/etc/vulkan/explicit_layer.d"
export PATH="$VULKAN_SDK/bin:$PATH"
Examples
1 - Triangle
Simple render of a colourful triangle. This is as simple as vulkan gets.
2 - Buffers
Simple render of a rectangle using a vertex buffer and an index buffer, each updated with a staging buffer.