Skip to content
Switch branches/tags


Failed to load latest commit information.


This is a Vulkan renderer that is written on stream from scratch - without using any third party code that is Vulkan specific. We are using non-Vulkan-specific third party libraries however.

The goal is to experiment with a few modern Vulkan rendering techniques, such as GPU culling & scene submission, cone culling, automatic occlusion culling, task/mesh shading, and whatever else it is that we will want to experiment with. The code will be written on stream.


The renderer is written using Visual Studio and targets Windows desktops with modern Vulkan drivers. You will need Visual Studio 2019 and Vulkan SDK to follow along


To build and run the project, clone this repository using --recursive flag:

git clone --recursive

Make sure you have Vulkan SDK installed; open the Visual Studio project in niagara/src and build it.

To run the program, command line should contain arguments with paths to .obj files; you can use kitten.obj from data/ folder for testing. On lower-end GPUs you might want to change drawCount in niagara.cpp to be a value smaller than 1M.


The development of this project has streamed on YouTube on weekends in October and November 2018; the project is currently on hold.


  1. Setting up instance/device and filling the screen with a solid color:
  2. Rendering a triangle on screen:
  3. Cleaning up validation errors and implementing swapchain resize:
  4. Rendering a mesh using shader storage buffers and int8:
  5. Rendering a mesh using NVidia RTX mesh shading pipeline:
  6. Optimizing GPU time by using device-local memory and parallelizing mesh shader:
  7. Using descriptor update templates and parsing SPIRV to extract reflection data:
  8. Cluster cone culling using task shaders and subgroup ops:
  9. Tuning mesh shading pipeline for performance:
  10. Depth buffer, perspective projection, 3D transforms and multi draw indirect:
  11. Multiple meshes and GPU frustum culling:
  12. Draw call compaction using KHR_draw_indirect_count and LOD support:
  13. Depth pyramid construction and extending SPIRV reflection parser:
  14. Automatic occlusion culling:
  15. Vulkan 1.2 and GPU buffer pointers:


During the streams we find various bugs in parts of the Vulkan stack and report them; bugs marked with ✔️ have been fixed.


A Vulkan renderer written from scratch on stream







No releases published


No packages published