/first-vulkan-triangle

First Vulkan triangle in less than 1000 lines.

Primary LanguageC++

Dear Vulkan

  • C++17 required
  • Vulkan with C++ bindings required
  • Glfw3 required
  • glsl -> SPIR-V compiler required

Build

$ cmake . -Bbuild
$ cmake --build build

Shader Precompile

$ glslangValidator resources/main.fs -V -o build/fs.spv
$ glslangValidator resources/main.vs -V -o build/vs.spv

Excecute

$ cd build && ./main

Finally you get a stupid triangle like this