Vulkan GPU particle simulation using both graphics and compute. Based on the Khronos Vulkan Compute Shader Tutorial.
Modifications from tutorial include:
- Using specialization constant in shader to control number of work-items in a work-group from host-code.
Only tested on Ubuntu 24.04 and requires a C++20 compiler to build along with the Vulkan-SDK. See Development Environment for more details on the build setup.
Sample command line for building and running application, the validation layer is enabled in Debug builds:
$ mkdir build && cd build
$ cmake ../ -GNinja -DCMAKE_CXX_COMPILER=clang++-19
$ ninja
$ cd build && ./vkParticlePress Escape key to exit, or close window in GUI.
