Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mixern6 opened this issue Jul 24, 2024 · 2 comments
Open

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

mixern6 opened this issue Jul 24, 2024 · 2 comments

Comments

@mixern6
Copy link

mixern6 commented Jul 24, 2024

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
Copy link

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
Copy link
Author

mixern6 commented Sep 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants