vulkan vscode配置
时间: 2023-10-09 10:14:14 浏览: 262
vscode 默认热键 快捷键配置文件,把它下载下来后,放到用户根目录,像我是win10 就放在 C:\Users\code0
好的,我可以帮助你配置vulkan vscode。首先,你需要安装Vulkan SDK。你可以在Vulkan SDK官网(https://vulkan.lunarg.com/sdk/home)下载适合你的操作系统版本。安装好之后,打开VSCode,点击File->Preferences->Settings,在搜索框中输入“extensions”,找到“Extensions: Marketplace”,在Marketplace搜索框中输入“Vulkan”,点击安装相应的Visual Studio Code插件。之后,在VSCode中,打开任意C++文件,点击左下角的“C++ Ext”按钮,在弹出的框中选择“Edit in c_cpp_properties.json”,在“configurations”字段中添加以下内容:
{
"name": "Vulkan",
"includePath": [
"${vulkanSdk}/include"
],
"defines": [
"VK_USE_PLATFORM_WIN32_KHR"
],
"compilerPath": "${vulkanSdk}/Bin32/glslangValidator.exe",
"intelliSenseMode": "${default}",
"browse": {
"path": [
"${vulkanSdk}/Include"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
保存后,重新打开C++文件,完成了Vulkan vscode的配置。希望这可以帮到你!
阅读全文