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

CMakeLists.txt for GDK backend #110

Open
rbratta opened this issue Nov 14, 2024 · 1 comment
Open

CMakeLists.txt for GDK backend #110

rbratta opened this issue Nov 14, 2024 · 1 comment

Comments

@rbratta
Copy link

rbratta commented Nov 14, 2024

I am a registered Xbox developer and I want to build FSR1 and FSR3 for GDK backend. To do this, I copied the AMDTK\fidelityfx\src\backends\gdk directory (from October 2024 GDKX samples) to the sdk\src\backends directory and then started the CMake generation step with the following command: cmake.exe -S sdk -B _build\scarlett -D FFX_API_BACKEND=GDK_SCARLETT_X64 -D FFX_FSR1=ON -D FFX_FSR3=ON. But CMake (of course) gives an error (due to the add_subdirectory(${FFX_SRC_BACKENDS_PATH}/gdk) statement) because there is no CMakeLists.txt in sdk\src\backends\gdk. Where should I find that file? Do I have to write it by myself?

@rbratta
Copy link
Author

rbratta commented Nov 15, 2024

After some trial and error, I seem to have been able to compile the library for GDK by copying the missing CMake files from the DX12 backend and then enabling root signature embedding (as in this patch). Is this the supposed way to proceed?

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

1 participant