Skip to content

Commit

Permalink
Update source\EnvironmentalConfig.rst for Windows Visual Studio Config
Browse files Browse the repository at this point in the history
  • Loading branch information
FuXiii committed Sep 25, 2023
1 parent 7df3df6 commit ea51688
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 2 deletions.
4 changes: 4 additions & 0 deletions source/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
此更新日志为纵览更新,对于具体文章的更新位于每个文章的开头的 `更新记录` 中。
```

## 2023/9/25

>* 更新`环境配置`文档
## 2023/9/23

>* 增加`Android 平台适配`随笔文档
Expand Down
44 changes: 42 additions & 2 deletions source/EnvironmentalConfig.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@
* 2023/9/22 增加该扩展文档
* 2023/9/22 增加 ``获取 Vulkan-Headers`` 章节
* 2023/9/22 增加 ``环境配置`` 章节
* 2023/9/25 更新 ``环境配置`` 章节中的 ``Windows`` 配置

.. |vs_new_line| image:: ./_static/vs_new_line.png
:width: 1em

在开始真正开发学习 ``Vulkan`` 前,需要配置一下必要的开发环境。

在开始配置环境前,您只需要获取 `Vulkan-Headers <https://github.com/KhronosGroup/Vulkan-Headers>`_ 即可:


获取 Vulkan-Headers
#####################

Expand Down Expand Up @@ -66,7 +69,44 @@

.. figure:: ./_static/vs_solution_explorer_menu.png

待续
4. 在项目上的 ``Source Files`` 上 :kbd:`右键` 依次点击 :menuselection:`Add --> New Item` 选项

.. figure:: ./_static/vs_new_item.png

5. 在 ``Add New Item`` 页面中依次点击 :menuselection:`C++ File(.cpp) --> Name(将 Source.cpp 修改为 main.cpp) --> Add` 选项

.. figure:: ./_static/vs_create_main_cpp.png

这样就在 ``Source Files`` 下创建了一个 ``main.cpp`` 文件。

.. figure:: ./_static/vs_main_cpp_file.png

6. 在项目上 :kbd:`右键` 点击 :menuselection:`Properties` 选项,打开 ``Properties`` 页面。

.. figure:: ./_static/vs_project_properties.png

7. 在 ``Properties`` 页面中依次点击 :menuselection:`Configuration Properties --> C/C++ --> General --> Additional Include Directions -->--> <Edit...>` ,打开头文件目录配置页面。

.. figure:: ./_static/vs_additional_include_directions.png

.. admonition:: 注意
:class: note

需要确保红框中对应的配置参数一致(这里使用输出 ``Debug`` 调试目标, ``x64`` 平台)。

.. figure:: ./_static/vs_config_uniform.png

8. 在红框空白处 :kbd:`双击` 或点击右上角的 |vs_new_line| 。将 ``Vulkan-Headers`` 的 ``include`` 文件夹目录配置进来。

.. figure:: ./_static/vs_add_include_header_dir.png

9. 配置完成后点击 :menuselection:`OK` 完成头文件目录配置。

.. figure:: ./_static/vs_vulkan_headers.png

10. 回到 ``Properties`` 页面点击 :menuselection:`Apply` 完成配置

.. figure:: ./_static/vs_apply_header.png

.. tab-item:: Linux

Expand Down
Binary file added source/_static/vs_add_include_header_dir.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/vs_apply_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/vs_config_uniform.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/vs_create_main_cpp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/vs_main_cpp_file.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/vs_new_item.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/vs_new_line.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/vs_project_properties.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/vs_vulkan_headers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ea51688

Please sign in to comment.