学习 Vulkan 足迹

本文介绍如何安装及配置 Vulkan SDK,包括安装 CMake 和 Vulkan SDK 的步骤,设置环境变量的方法,以及在项目中正确配置 Vulkan 库的过程。还提供了针对不同操作系统和编译器的具体操作指导。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

 

file:///C:/VulkanSDK/1.0.57.0/Documentation/getting_started.html

 

1、  安装CMake, 然后

2、 

3、  找到安装路径,和新建的build路径。

4、  默认安装VulkanSDK-1.0.57.0-Installer, 把glm-0.9.7.3 和 gli-master 里边文件全部Copy到G:\AllOpenSource\VulkanTutorial\VlukanExample\Vulkan\external下的glm和gli文件夹里

5、 

6、 The LunarGVulkan SDK For Windows is a self-extracting installer. Run the downloaded .exe file to install the SDK. The default SDK install location is C:\VulkanSDK\version.

7、 Installingthe LunarG Vulkan SDK sets the system environment variable VULKAN_SDK to the directory in which the SDK is installed, which will looklike C:\VulkanSDK\1.0.0.0, but withthe version number being the version that was installed. Installing the LunarGVulkan SDK also prepends %VULKAN_SDK%\Bin (%VULKAN_SDK%\Bin32 on 32-bit Windows) to the systemPATH environment variable. The system environment variable VK_SDK_PATH is set to the same value as VULKAN_SDK for compatibility with prior releases. Note that programs andcommand shells that were running during installation may not see the updatedenvironment variables until they are restarted.

8、 The Vulkanloader, vulkan-1.dll, isinstalled in C:\Windows\System32. This willbe a 32-bit DLL on 32-bit Windows targets and a 64-bit DLL on 64-bit Windowstargets. 64-bit targets will also have the 32-bit Vulkan loader (of the samename) installed in C:\Windows\SysWOW64. Vulkanapplications will find and use the appropriate library by default.

9、  在项目解决方案上右键属性

10、             

11、             把lib 的附加库目录加入。

12、             自己电脑是64位在Cmake里一定选vs2017 64位,

13、             

14、             

15、             无法启动此程序,因为计算机中丢失assimp-vc140-mt.dll。尝试重新安装该程序以解决此问题

16、             

 

vulkan VK_ERROR_INCOMPATIBLE_DRIVER -9

 

http://www.nvidia.com/Download/index.aspx?lang=en-us,Search找到适合自己电脑下载

/////////////////////////////////////////////////////////////////////////////////////



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

警醒与鞭策

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值