11# vulkan-tutorial-C-implementation
22<br />
3- A C implementation from [ vulkan-tutorial.com] ( https://vulkan-tutorial.com )
3+ <br />
4+ A C implementation from <a href =" https://vulkan-tutorial.com " >vulkan-tutorial.com</a >
45<br />
56<br />
67<br />
78
89# Why use C ?
910<br />
11+ <br />
1012Because C code has simple logic and it suits newbies who doesn't know C++ hardcore features or STL stuff.
1113<br />
1214<br />
1315<br />
1416
1517# How to build ?
1618<br />
19+ <br />
1720For Linux users:
1821<br />
22+ <br />
1923Make sure you have a DESKTOP ENVIRONMENT !!!
2024<br />
2125<br />
2226<br />
2327<br />
2428STEP1: Install Necessary Programs
2529<br />
30+ <br />
2631if you're using Debian, Fedora or Arch, vulkan is available from your repository.
2732Just type install command in console.
2833<br />
@@ -32,6 +37,7 @@ For Debian(or Ubuntu, or distros based on debian):
3237
3338 sudo apt install libvulkan1 vulkan-mesa-drivers vulkan-utils gcc make glslang
3439<br />
40+ <br />
3541NVIDIA GPU:
3642
3743 sudo add-apt-repository ppa: graphics-drivers /ppa
@@ -45,6 +51,7 @@ For Feodra:
4551
4652 sudo dnf install vulkan vulkan-info vulkan-tools gcc make glslang
4753<br />
54+ <br />
4855NVIDIA GPU:
4956
5057 dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$ (rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$ (rpm -E %fedora).noarch.rpm
@@ -57,18 +64,22 @@ For Arch Linux(or Manjaro):
5764
5865 sudo pacman -S base-devel vulkan-devel glslang xorg-drivers --needed
5966<br />
67+ <br />
6068INTEL GPU:
6169
6270 sudo pacman -S vulkan-intel --needed
6371<br />
72+ <br />
6473AMD READEON GPU:
6574
6675 sudo pacman -S vulkan-radeon --needed
6776<br />
77+ <br />
6878AMD RX GPU:
6979
7080 sudo pacman -S amdvlk --needed
7181<br />
82+ <br />
7283NVIDIA GPU:
7384
7485 sudo pacman -S nvidia-utils --needed
@@ -77,7 +88,8 @@ NVIDIA GPU:
7788<br />
7889For Raspberry Pi:
7990<br />
80- Download [ Manjaro ARM] ( https://manjaro.org/download/#raspberry-pi-4-xfce ) image and burn it to your SD card, because only Manjaro ARM has built-in support for vulkan.
91+ <br />
92+ Download <a href =" https://manjaro.org/download/#raspberry-pi-4-xfce " >Manjaro ARM</a > image and burn it to your SD card, because only Manjaro ARM has built-in support for vulkan.
8193
8294 sudo pacman -S base-devel vulkan-devel glslang xorg-drivers vulkan-broadcom --needed
8395<br />
@@ -87,11 +99,13 @@ Download [Manjaro ARM](https://manjaro.org/download/#raspberry-pi-4-xfce) image
8799<br />
88100STEP2: Test the installation
89101<br />
102+ <br />
90103type following commands:
91104
92105 vulkaninfo
93106 vkcube
94107<br />
108+ <br />
95109If no error occurs, vulkan is set correctly.
96110<br />
97111<br />
@@ -100,13 +114,16 @@ If no error occurs, vulkan is set correctly.
100114<br />
101115STEP3: Download Codes
102116<br />
117+ <br />
103118Download via ZIP or Release Tarball
104119<br />
105120<br />
106121<br />
107122<br />
108123<br />
109124STEP4: use Makefile
125+ <br />
126+ <br />
110127
111128 make #install
112129 ./op #run
@@ -118,7 +135,8 @@ STEP4: use Makefile
118135<br />
119136For Windows users:
120137<br />
121- I don't use Windows for programming, so follow the guide from [ The Original Site] ( https://vulkan-tutorial.com/Development_environment ) .
138+ <br />
139+ I don't use Windows for programming, so follow the guide from <a href =" https://vulkan-tutorial.com/Development_environment " >The Original Site</a >.
122140<br />
123141By the way, Makefile is useless on Windows, copy the code in Visual Studio project and build it.
124142<br />
@@ -128,9 +146,13 @@ By the way, Makefile is useless on Windows, copy the code in Visual Studio proje
128146<br />
129147For MacOS users:
130148<br />
131- [ MoltenVK official github page] ( https://github.com/KhronosGroup/MoltenVK )
149+ <br />
150+ <a href =" https://github.com/KhronosGroup/MoltenVK " >MoltenVK official github page</a >
151+ <br />
132152<br />
133153OR:
154+ <br />
155+ <br />
134156
135157 brew install vulkan-headers molten-vk gcc make glslang
136158<br />
0 commit comments