Skip to content

PAMinerva/LearnVulkan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learn Vulkan from code samples

Description

This repository hosts the code of the samples for the tutorial series you can find in the wiki, or at the following link:

Learn Vulkan from code samples


Repository Dependencies

  • Vulkan SDK
  • Visual Studio Code with the C/C++ extension installed
  • MSVC compiler toolset (on Windows)
  • GCC and GDB (on Linux)

How to build the samples (both on Windows and Linux)

  • Clone this repository using the command git clone https://github.com/PAMinerva/LearnVulkan
  • Navigate to the "samples" directory, where you will find a folder for each sample
  • Open the project of a sample by opening the corresponding folder with Visual Studio Code
  • Open a source file in VS Code, for example src/Main.cpp
  • Press Ctrl+Shift+B to compile the sample
  • Press Ctrl+F5 to compile and run the sample
  • Press F5 to compile and debug the sample


As you can see, some tutorials are almost comparable to book chapters. It takes a fair amount of time and effort to write such detailed tutorials. So, if you like this project, or if you find it somewhat helpful, please consider supporting further development by clicking on the Sponsor button. Whether a small tip, a one time donation, or a recurring payment, it's all welcome! Thank you!



Samples

01.A - Hello Window 01.B - Hello Triangle
01.C - Hello Secondary CBs 01.D - Hello Uniforms
01.E - Hello Frame Buffering 01.F - Hello Textures
01.G - Hello Transformations 01.H - Hello Lighting               
02.A - Alpha Blending 02.B - Stenciling
02.C - Geometry Shader 02.D - Transform Feedback
02.E - Tessellation 02.F - Compute Shader


License

All code samples are licensed under the terms of the MIT license, while all content in the wiki, including images and Markdown code of the tutorials, is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc/4.0/


Credits