Hey,
Many applications do not link directly to vulkan-1.lib. Instead, they load the Vulkan entry points dynamically. In this PR, I added support for dynamic vulkan functions to RPS.
The macro RPS_VK_DYNAMIC_VULKAN_FUNCTIONS enables loading the vulkan functions from a structure called RpsVKFunctions provided in RpsVKRuntimeDeviceCreateInfo instead of using the statically linked functions. The structure RpsVKFunctions contains all required vulkan functions used by the library.
Hey, Many applications do not link directly to
vulkan-1.lib
. Instead, they load the Vulkan entry points dynamically. In this PR, I added support for dynamic vulkan functions to RPS.The macro
RPS_VK_DYNAMIC_VULKAN_FUNCTIONS
enables loading the vulkan functions from a structure calledRpsVKFunctions
provided inRpsVKRuntimeDeviceCreateInfo
instead of using the statically linked functions. The structureRpsVKFunctions
contains all required vulkan functions used by the library.Since I'm creating a rust wrapper for RPS, it is required to import the vulkan functions from the
Ash
wrapper. See https://github.com/projectkml/render-pipeline-shaders-rs