diff --git a/.gitignore b/.gitignore index ca7adc8..c7f86bd 100644 --- a/.gitignore +++ b/.gitignore @@ -34,4 +34,6 @@ build/ .vscode/* -!.vscode/tasks.json \ No newline at end of file +!.vscode/tasks.json + +source/_static/VulkanTriangle/build \ No newline at end of file diff --git a/source/Application/VulkanTriangle.rst b/source/Application/VulkanTriangle.rst new file mode 100644 index 0000000..38c384b --- /dev/null +++ b/source/Application/VulkanTriangle.rst @@ -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 \ No newline at end of file diff --git a/source/Changelog.md b/source/Changelog.md index b26f782..fa3b9e7 100644 --- a/source/Changelog.md +++ b/source/Changelog.md @@ -4,6 +4,14 @@ 此更新日志为纵览更新,对于具体文章的更新位于每个文章的开头的 `更新记录` 中。 ``` +## 2024/11/8 + +>* 更新`Vulkan 三角形`工程文档 + +## 2024/11/7 + +>* 增加`Vulkan 三角形`工程文档 + ## 2024/11/5 >* 更新`资源与内存`文档 diff --git a/source/_static/VulkanTriangle/create_build_folder.png b/source/_static/VulkanTriangle/create_build_folder.png new file mode 100644 index 0000000..7bad47c Binary files /dev/null and b/source/_static/VulkanTriangle/create_build_folder.png differ diff --git a/source/_static/VulkanTriangle/vulkan_triangle.png b/source/_static/VulkanTriangle/vulkan_triangle.png new file mode 100644 index 0000000..68dc70e Binary files /dev/null and b/source/_static/VulkanTriangle/vulkan_triangle.png differ diff --git a/source/index.rst b/source/index.rst index 1301da3..c49fc26 100644 --- a/source/index.rst +++ b/source/index.rst @@ -107,6 +107,7 @@ :caption: 工程应用 :maxdepth: 2 + ./Application/VulkanTriangle.rst ./Application/index.rst .. toctree::