Vulkan 构建错误

Ali*_*ami 2 vulkan

我想构建一个包含在 Vulkan SDK 中的示例。

我从http://vulkan.lunarg.com下载了 SDK并安装了它。

然后我打开Visual Studio(我有一个2013版本),我从这个路径打开解决方案:(C:\VulkanSDK\1.0.13.0\Demos)。我选择DEMOS.sln文件。然后当我单击LocalWindowsDebugger此消息时弹出:

vkCreateInstance Failure:
vkEnumerateInstanceExtensionProperties failed to find the VK_KHR_surface extention. 
Do you have a compatible Vulkan installable client driver (ICD) insatalled? Please look at the Getting Started  guide for additional information.
Run Code Online (Sandbox Code Playgroud)

我从未与 vulkan 合作过,但正如它命名为“Demo”一样,我认为它里面的所有东西都应该设置好才能工作。

我搜索了网络,但由于它是新的,因此很少有资源讨论它。

什么是ICD?以及如何安装它?(它与 VulkanSDK 的安装程序不同吗?)或者这个错误是关于完全不同的属性?喜欢设置 VisualStudio 的属性?

krO*_*oze 5

ICD is basically your GPU driver...

Both the SDK and driver install vulkaninfo app. Use it to determine what extensions you have and whatnot.

BTW Some time ago AMD drivers forgot to export the extensions like VK_KHR_surface. Make sure you are using the latest driver (16.5.2.1 on AMD and 365.19 on NVIDIA as of time of writing).

Also you need supported GPU. Consult:

NVIDIA supported GPUs

AMD supported GPUs

Khronos 维护列表

顺便说一句:所有的演示都适合我。