GPUOpen-LibrariesAndSDKs / FidelityFX-SDK

The main repository for the FidelityFX SDK.
Other
876 stars 89 forks source link

FSR3 as a submodule for getting VK and DX12 builds #81

Open mixern6 opened 3 months ago

mixern6 commented 3 months ago

I'm trying to add FSR3 as a submodule to my project. I need to get both VK and DX12 builds, but "FidelityFX-SDK/ffx-api" can be added as a subdirectory only once with either VK or DX12 setting. Is there a general approach to get both builds at the same time?

lordOznek commented 1 month ago

Hello! If I understand correctly your needs, you want to be able to embed VK and DX12 backend into your executable. If so, you will need to load the dll dynamically (LoadLibrary) and retrieve the function with GetProcAddress. You will then use those function pointers to call the API.

mixern6 commented 1 month ago

Hello lordOznek, To get both builds I need to have two copies of add_subdirectory(ThirdParty/FidelityFX-SDK/ffx-api), but cmake doesn't allow it. I have to choose between vk and dx12 builds. I need both.