FidelityFX-SDK icon indicating copy to clipboard operation
FidelityFX-SDK copied to clipboard

Very Coooool!!!!

Open bigdimboom opened this issue 2 years ago • 4 comments

What are the cmake flags do I use to build this and examples on linux + vulkan?

bigdimboom avatar Oct 17 '23 07:10 bigdimboom

You could try the following from the root directory:

cmake -A .. -DFFX_API_CUSTOM=OFF -DFFX_ALL=ON -DFFX_AUTO_COMPILE_SHADERS=1 cmake --build ./ --config Release

where is the generator for the linux platform you are using.

This will fail to build the dx12 native library, but may build Vulkan ok. However, I have no idea if it will work as none of this has been tested outside of x64. I'd be curious to find out if it works.

jlacroixAMD avatar Oct 17 '23 07:10 jlacroixAMD

No, worries. I will play around with it. There is awesome man!!!

bigdimboom avatar Oct 17 '23 20:10 bigdimboom

Hi @jlacroixAMD

I tried to run cmake to build FidelityFX on ubuntu but got the error below: FidelityFX-SDK/framework/cauldron/framework/libs/imgui/backends/imgui_impl_win32.cpp:20:10: fatal error: windows.h: No such file or directory 20 | #include <windows.h> | ^~~~~~~~~~~ compilation terminated.

Is there any way I can avoid windows part? Thanks.

dspcad avatar Dec 21 '23 20:12 dspcad

The graphics framework the samples are built on only supports windows at the moment. If you want to build the sample framework for Linux you will need to implement a few extra things:

  • linux impl for framework
  • linux impl of inputmanager
  • linux impl of uibackend (this should mostly be pulling in the right imgui platform file)
  • linux impl of shaderbuild

You may or may not have to make a modified backend for VK if the current one also pulls in windows (I can't remember off the top of my head).

Cheers,

Jason

jlacroixAMD avatar Jan 09 '24 01:01 jlacroixAMD