From 3ee461e82bbb0d6e5492d1134d74f415a92ead19 Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Sat, 4 Oct 2025 10:59:34 +0200 Subject: [PATCH] Add paragraph on where to actually get the code for the tutorial Remove non-working link to attachments folder (Antora does not work like that) --- en/02_Development_environment.adoc | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/en/02_Development_environment.adoc b/en/02_Development_environment.adoc index 8a7032d6..6a6efd84 100644 --- a/en/02_Development_environment.adoc +++ b/en/02_Development_environment.adoc @@ -8,6 +8,20 @@ except for the compiler, are compatible with Windows, Linux and macOS, but the steps for installing them differ a bit, which is why they're described separately here. +== Getting the code + +First we need to clone the code for the tutorial from the https://github.com/KhronosGroup/Vulkan-Tutorial[github repository]. +This requires an install of the https://git-scm.com/[git] version control system. + +With git installed we can locally clone the repository like this: + +[,bash] +---- +git clone https://github.com/KhronosGroup/Vulkan-Tutorial +---- + +This will clone the repository to a new folder (inside the current one) called `Vulkan-Tutorial`. The Source files for the chapters are located in the `attachments` folder. + == Dependency Install Scripts To make the setup process easier, we've provided dependency install scripts for Windows and Linux: @@ -270,9 +284,7 @@ everything works. I will assume that you already have some basic experience with CMake, like how variables and rules work. If not, you can get up to speed very quickly with https://cmake.org/cmake/help/book/mastering-cmake/cmake/Help/guide/tutorial/[this tutorial]. -You can now use the link:https://github.com/KhronosGroup/Vulkan-Tutorial/tree/main/attachments[attachments] directory in this tutorial -as a template for your Vulkan projects. Make a copy, rename it to something like `HelloTriangle` -and remove all the code in `main.cpp`. +You can now use the code from any of the following chapters found in the `attachment` folder as a template for your Vulkan projects. Make a copy, rename it to something like `HelloTriangle` and remove all the code in `main.cpp`. Congratulations, you're all set for xref:03_Drawing_a_triangle/00_Setup/00_Base_code.adoc[playing with Vulkan]!