Skip to content

dmitrykolesnikovich/kgl-vulkan-samples

 
 

Repository files navigation

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.

About

Examples for vulkan using kgl.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 97.3%
  • GLSL 2.7%