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

Commit 2355386

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

File tree

1 file changed

+69
-62
lines changed

1 file changed

+69
-62
lines changed

README.md

Lines changed: 69 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,126 +1,133 @@
11
# vulkan-tutorial-C-implementation
2+
\
23
A C implementation from [vulkan-tutorial.com](https://vulkan-tutorial.com)
3-
4+
\
45
# Why use C ?
5-
6+
\
67
Because C code has simple logic and it suits newbies who doesn't know C++ hardcore features or STL stuff.
7-
8-
9-
8+
\
9+
\
10+
\
1011
# How to build ?
11-
12+
\
1213
For Linux users:
13-
14+
\
1415
Make sure you have a DESKTOP ENVIRONMENT !!!
15-
16+
\
17+
\
1618
STEP1: Install Necessary Programs
17-
19+
\
1820
if you're using Debian, Fedora or Arch, vulkan is available from your repository.
1921
Just type install command in console.
20-
21-
22-
22+
\
23+
\
24+
\
2325
For Debian(or Ubuntu, or distros based on debian):
24-
26+
2527
sudo apt install libvulkan1 vulkan-mesa-drivers vulkan-utils gcc make glslang
26-
28+
\
2729
NVIDIA GPU:
28-
30+
2931
sudo add-apt-repository ppa:graphics-drivers/ppa
3032
sudo apt upgrade
3133
sudo apt install nvidia-graphics-drivers-396 nvidia-settings
32-
33-
34-
35-
34+
\
35+
\
36+
\
37+
\
3638
For Feodra:
37-
39+
3840
sudo dnf install vulkan vulkan-info vulkan-tools gcc make glslang
39-
41+
\
4042
NVIDIA GPU:
41-
43+
4244
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
4345
dnf install xorg-x11-drv-nvidia akmod-nvidia
44-
45-
46-
47-
46+
\
47+
\
48+
\
49+
\
4850
For Arch Linux(or Manjaro):
4951

5052
sudo pacman -S base-devel vulkan-devel glslang xorg-drivers --needed
51-
53+
\
5254
INTEL GPU:
5355

5456
sudo pacman -S vulkan-intel --needed
55-
57+
\
5658
AMD READEON GPU:
5759

5860
sudo pacman -S vulkan-radeon --needed
5961

6062
AMD RX GPU:
6163

6264
sudo pacman -S amdvlk --needed
63-
65+
\
6466
NVIDIA GPU:
6567

6668
sudo pacman -S nvidia-utils --needed
67-
68-
69+
\
70+
\
71+
\
6972
For Raspberry Pi:
7073

7174
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.
7275

7376
sudo pacman -S base-devel vulkan-devel glslang xorg-drivers vulkan-broadcom --needed
74-
75-
76-
77-
77+
\
78+
\
79+
\
80+
\
81+
\
7882
STEP2: Test the installation
79-
83+
\
8084
type following commands:
8185

8286
vulkaninfo
8387
vkcube
84-
88+
\
8589
If no error occurs, vulkan is set correctly.
86-
87-
88-
90+
\
91+
\
92+
\
93+
\
94+
\
8995
STEP3: Download Codes
90-
91-
Download via ZIP
92-
93-
94-
95-
96-
96+
\
97+
Download via ZIP or Release Tarball
98+
\
99+
\
100+
\
101+
\
102+
\
97103
STEP4: use Makefile
98104

99105
make #install
100106
./op #run
101107
make cl #remove
102-
103-
104-
105-
108+
\
109+
\
110+
\
111+
\
112+
\
106113
For Windows users:
107114

108115
I don't use Windows for programming, so follow the guide from [The Original Site](https://vulkan-tutorial.com/Development_environment).
109116

110117
By the way, Makefile is useless on Windows, copy the code in Visual Studio project and build it.
111-
112-
113-
114-
118+
\
119+
\
120+
\
121+
\
122+
\
115123
For MacOS users:
116-
124+
\
117125
[MoltenVK official github page](https://github.com/KhronosGroup/MoltenVK)
118-
126+
\
119127
OR:
120128

121129
brew install vulkan-headers molten-vk gcc make glslang
122-
123-
124-
125-
126-
130+
\
131+
\
132+
\
133+
\

0 commit comments

Comments
 (0)