/vulkan-tut

Vulkan Tutorials

Primary LanguageC++

The Vulkan Tutorial

"Drawing a Triangle" with Vulkan. An implementation of the tutorial at https://vulkan-tutorial.com/Drawing_a_triangle/Setup/Base_code.

Screenshot of the demo running on Ubuntu 21.10 on an AMD Ryzen 9 5900HX:

Triangle in Vulkan

Build Instructions

You will need Cmake and Vulkan installed. On Ubuntu 21, do this:

sudo apt install cmake libvulkan1 mesa-vulkan-drivers vulkan-utils

Run

cmake -S HelloTriangle/ -B build && cmake --build build
./build/bin/HelloTriangle 

CustomCompute

An experiment with Compute Shaders and benchmark them against GPUs

cd CustomCompute
cmake -S . -B build && cmake --build build
time ./build/bin/CustomCompute
time ./build/bin/CppBenchmark