Vulkan SDK 可再发行组件

Vulkan SDK Redistributables

我 post LunarG 的以下问题,作为第 565 期,关于 Vulkan SDK 可再发行部分,用于使用 Vulkan 开发的准备就绪的应用程序。我想与 Stack Overflow 开发人员分享它。

Let's say I have Vulkan application demo and wish to send it to potential clients, in order to evaluate it. If I'd develop it using SDK, what is the correct way to deploy it :

a) include the compatible SDK installer in a multi-install process ?

b) include some SDK's dlls and companion files ? Which ones ?

It also raises another question: Can I re-distribute SDK files ?

来自 LunarG 的 Karl Schultz 回复如下:

On Windows, many IHVs include the Vulkan loader DLL in their install packages, placing it in system32/vulkan-1.dll. So, in many cases, your app might just work fine as long as the user has installed drivers with Vulkan support.

You might also consider shipping only the RunTimeInstaller, which is found in the SDK. This would let the user install the run time (loader) as part of your application install. The RTI includes version checking so that it doesn't clobber a newer version installed by IHV drivers, or vice-versa. In short, this is probably the best way to go. It would be better to include the RTI as part of the "multi-install process" rather than include the entire SDK.

If your application needs layers or some other specific item from the SDK, then you'd have to include those explicitly somehow.

Please check the licensing-related files within the SDK concerning redistribution.