Skip to content

Commit d8b3742

Browse files
committed
Update source\Application\VulkanTriangle.rst
1 parent ae7b7fb commit d8b3742

File tree

2 files changed

+49
-3
lines changed

2 files changed

+49
-3
lines changed

source/Application/VulkanTriangle.rst

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Vulkan 三角形
77

88
* 2024/11/7 增加该文章
99
* 2024/11/8 更新该文章
10+
* 2024/11/15 更新该文章。增加编译流程说明和 ``MacOS`` 适配。
1011

1112
.. sidebar::
1213

@@ -41,6 +42,39 @@ Vulkan 三角形
4142

4243
* ``Windows``
4344
* ``Linux``
45+
* ``MacOS``
46+
47+
0. 配置环境
48+
49+
.. tab-set::
50+
51+
.. tab-item:: Windows
52+
53+
``Visual Studio``
54+
55+
.. tab-item:: Linux
56+
57+
命令行中执行如下指令:
58+
59+
.. code-block:: console
60+
61+
sudo apt-get install libxrandr-dev
62+
sudo apt-get install libxinerama-dev
63+
sudo apt-get install libxcursor-dev
64+
sudo apt-get install libxi-dev
65+
sudo apt-get install freeglut3-dev
66+
67+
.. tab-item:: MacOS
68+
69+
命令行中执行如下指令:
70+
71+
.. code-block:: console
72+
73+
brew install libxrandr
74+
brew install libxinerama
75+
brew install libxcursor
76+
brew install libxi
77+
brew install freeglut
4478
4579
1. 下载并解压
4680
2. 在同级目录下创建 ``build`` 文件夹
@@ -59,14 +93,22 @@ Vulkan 三角形
5993

6094
.. tab-set::
6195

62-
.. tab-item:: Visual Studio
96+
.. tab-item:: Windows
6397

64-
打开 ``build`` 文件夹下的 ``.sln`` 文件,编译执行即可。
98+
使用 ``Visual Studio`` 打开 ``build`` 文件夹下的 ``.sln`` 文件,编译执行即可。
6599

66100
.. tab-item:: Linux
67101

68102
命令行中执行如下指令即可:
69103

70104
.. code-block:: console
71105
72-
make
106+
make
107+
108+
.. tab-item:: MacOS
109+
110+
命令行中执行如下指令即可:
111+
112+
.. code-block:: console
113+
114+
cmake --build .

source/Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
此更新日志为纵览更新,对于具体文章的更新位于每个文章的开头的 `更新记录` 中。
55
```
66

7+
## 2024/11/15
8+
9+
>* 更新`Vulkan 三角形`工程文档
10+
711
## 2024/11/8
812

913
>* 更新`Vulkan 三角形`工程文档

0 commit comments

Comments
 (0)