GPUOpen-LibrariesAndSDKs / RenderPipelineShaders

Render Pipeline Shaders SDK
MIT License
312 stars 24 forks source link

Add support for dynamic vulkan loaders #7

Closed BeastLe9enD closed 1 year ago

BeastLe9enD commented 1 year ago

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.

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

FlorianHerickAMD commented 1 year ago

Support for dynamically loaded vk calls has been added in the latest update we just released.