Skip to content

Commit

Permalink
Update source\Application\VulkanTriangle.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
FuXiii committed Nov 8, 2024
1 parent e62e856 commit e1c8c7c
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@
build/

.vscode/*
!.vscode/tasks.json
!.vscode/tasks.json

source/_static/VulkanTriangle/build
64 changes: 64 additions & 0 deletions source/Application/VulkanTriangle.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
Vulkan 三角形
===================

.. dropdown:: 更新记录
:color: muted
:icon: history

* 2024/11/7 增加该文章
* 2024/11/8 更新该文章

.. card:: Vulkan 三角形
:link: https://github.com/FuXiii/VulkanTriangle/archive/refs/heads/main.zip
:shadow: lg
:text-align: center

点击下载源码

+++
.. figure:: ../_static/VulkanTriangle/vulkan_triangle.png
:scale: 50

.. admonition:: 项目要求
:class: note

* ``CMake``
* ``C/C++`` 的编译环境
* ``Vulkan 运行时`` (一般系统都默认自带)

.. admonition:: 支持平台
:class: tip

* ``Windows``
* ``Linux``

1. 下载并解压
2. 在同级目录下创建 ``build`` 文件夹

.. figure:: ../_static/VulkanTriangle/create_build_folder.png

创建 build 文件夹

3. 命令行定位到 ``build`` 文件夹,执行如下指令:

.. code-block:: console
cmake ..
4. 编译生成可执行程序

.. tab-set::

.. tab-item:: Visual Studio

打开 ``build`` 文件夹下的 ``.sln`` 文件,编译执行即可。

.. tab-item:: Linux

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

.. code-block:: console
make
.. figure:: ../_static/VulkanTriangle/vulkan_triangle.png
8 changes: 8 additions & 0 deletions source/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
此更新日志为纵览更新,对于具体文章的更新位于每个文章的开头的 `更新记录` 中。
```

## 2024/11/8

>* 更新`Vulkan 三角形`工程文档
## 2024/11/7

>* 增加`Vulkan 三角形`工程文档
## 2024/11/5

>* 更新`资源与内存`文档
Expand Down
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/VulkanTriangle/vulkan_triangle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
:caption: 工程应用
:maxdepth: 2

./Application/VulkanTriangle.rst
./Application/index.rst

.. toctree::
Expand Down

0 comments on commit e1c8c7c

Please sign in to comment.