Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.42 KB

README.md

File metadata and controls

29 lines (23 loc) · 1.42 KB

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

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

Simple render of a colourful triangle. This is as simple as vulkan gets.

Simple render of a rectangle using a vertex buffer and an index buffer, each updated with a staging buffer.