Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit d5b91ba

Browse files
author
lonelydevil
authored
Add line breaks
1 parent 2355386 commit d5b91ba

File tree

1 file changed

+74
-68
lines changed

1 file changed

+74
-68
lines changed

README.md

Lines changed: 74 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,133 +1,139 @@
11
# vulkan-tutorial-C-implementation
2-
\
2+
<br />
33
A C implementation from [vulkan-tutorial.com](https://vulkan-tutorial.com)
4-
\
4+
<br />
5+
<br />
6+
<br />
7+
58
# Why use C ?
6-
\
9+
<br />
710
Because C code has simple logic and it suits newbies who doesn't know C++ hardcore features or STL stuff.
8-
\
9-
\
10-
\
11+
<br />
12+
<br />
13+
<br />
14+
1115
# How to build ?
12-
\
16+
<br />
1317
For Linux users:
14-
\
18+
<br />
1519
Make sure you have a DESKTOP ENVIRONMENT !!!
16-
\
17-
\
20+
<br />
21+
<br />
22+
<br />
23+
<br />
1824
STEP1: Install Necessary Programs
19-
\
25+
<br />
2026
if you're using Debian, Fedora or Arch, vulkan is available from your repository.
2127
Just type install command in console.
22-
\
23-
\
24-
\
28+
<br />
29+
<br />
30+
<br />
2531
For Debian(or Ubuntu, or distros based on debian):
2632

2733
sudo apt install libvulkan1 vulkan-mesa-drivers vulkan-utils gcc make glslang
28-
\
34+
<br />
2935
NVIDIA GPU:
3036

3137
sudo add-apt-repository ppa:graphics-drivers/ppa
3238
sudo apt upgrade
3339
sudo apt install nvidia-graphics-drivers-396 nvidia-settings
34-
\
35-
\
36-
\
37-
\
40+
<br />
41+
<br />
42+
<br />
43+
<br />
3844
For Feodra:
3945

4046
sudo dnf install vulkan vulkan-info vulkan-tools gcc make glslang
41-
\
47+
<br />
4248
NVIDIA GPU:
4349

4450
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
4551
dnf install xorg-x11-drv-nvidia akmod-nvidia
46-
\
47-
\
48-
\
49-
\
52+
<br />
53+
<br />
54+
<br />
55+
<br />
5056
For Arch Linux(or Manjaro):
5157

5258
sudo pacman -S base-devel vulkan-devel glslang xorg-drivers --needed
53-
\
59+
<br />
5460
INTEL GPU:
5561

5662
sudo pacman -S vulkan-intel --needed
57-
\
63+
<br />
5864
AMD READEON GPU:
5965

6066
sudo pacman -S vulkan-radeon --needed
61-
67+
<br />
6268
AMD RX GPU:
6369

6470
sudo pacman -S amdvlk --needed
65-
\
71+
<br />
6672
NVIDIA GPU:
6773

6874
sudo pacman -S nvidia-utils --needed
69-
\
70-
\
71-
\
75+
<br />
76+
<br />
77+
<br />
7278
For Raspberry Pi:
73-
79+
<br />
7480
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.
7581

7682
sudo pacman -S base-devel vulkan-devel glslang xorg-drivers vulkan-broadcom --needed
77-
\
78-
\
79-
\
80-
\
81-
\
83+
<br />
84+
<br />
85+
<br />
86+
<br />
87+
<br />
8288
STEP2: Test the installation
83-
\
89+
<br />
8490
type following commands:
8591

8692
vulkaninfo
8793
vkcube
88-
\
94+
<br />
8995
If no error occurs, vulkan is set correctly.
90-
\
91-
\
92-
\
93-
\
94-
\
96+
<br />
97+
<br />
98+
<br />
99+
<br />
100+
<br />
95101
STEP3: Download Codes
96-
\
102+
<br />
97103
Download via ZIP or Release Tarball
98-
\
99-
\
100-
\
101-
\
102-
\
104+
<br />
105+
<br />
106+
<br />
107+
<br />
108+
<br />
103109
STEP4: use Makefile
104110

105111
make #install
106112
./op #run
107113
make cl #remove
108-
\
109-
\
110-
\
111-
\
112-
\
114+
<br />
115+
<br />
116+
<br />
117+
<br />
118+
<br />
113119
For Windows users:
114-
120+
<br />
115121
I don't use Windows for programming, so follow the guide from [The Original Site](https://vulkan-tutorial.com/Development_environment).
116-
122+
<br />
117123
By the way, Makefile is useless on Windows, copy the code in Visual Studio project and build it.
118-
\
119-
\
120-
\
121-
\
122-
\
124+
<br />
125+
<br />
126+
<br />
127+
<br />
128+
<br />
123129
For MacOS users:
124-
\
130+
<br />
125131
[MoltenVK official github page](https://github.com/KhronosGroup/MoltenVK)
126-
\
132+
<br />
127133
OR:
128134

129135
brew install vulkan-headers molten-vk gcc make glslang
130-
\
131-
\
132-
\
133-
\
136+
<br />
137+
<br />
138+
<br />
139+
<br />

0 commit comments

Comments
 (0)