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

FSR2.2 Doesn't compile when using FFX_FSR2_EMBED_ROOTSIG #111

Open
Chrl-Ref opened this issue May 29, 2023 · 0 comments
Open

FSR2.2 Doesn't compile when using FFX_FSR2_EMBED_ROOTSIG #111

Chrl-Ref opened this issue May 29, 2023 · 0 comments

Comments

@Chrl-Ref
Copy link

The project doesn't compile when adding -DFFX_FSR2_EMBED_ROOTSIG with any value to the FFX_SC_DX12_BASE_ARGS of the DirectX CMakeLists.txt.

The following error is given for each permutations of each .hlsl files :

Warnings and Errors (ffx_fsr2_accumulate_pass.hlsl - Permutation 15):
hlsl.hlsl(69,1): error GF598AAA6: root signature error - Unexpected token '('
FFX_FSR2_EMBED_ROOTSIG_CONTENT
^
C:/GIT_FidelityFX-FSR2-master/src/ffx-fsr2-api/dx12/../shaders\ffx_fsr2_callbacks_hlsl.h:117:40: note: expanded from macro 'FFX_FSR2_EMBED_ROOTSIG_CONTENT'
#define FFX_FSR2_EMBED_ROOTSIG_CONTENT FFX_FSR2_ROOTSIG
^
C:/GIT_FidelityFX-FSR2-master/src/ffx-fsr2-api/dx12/../shaders\ffx_fsr2_callbacks_hlsl.h:82:27: note: expanded from macro 'FFX_FSR2_ROOTSIG'
#define FFX_FSR2_ROOTSIG [RootSignature( "DescriptorTable(UAV(u0, numDescriptors = " FFX_FSR2_ROOTSIG_STRINGIFY(FFX_FSR2_RESOURCE_IDENTIFIER_COUNT) ")), "
^
Compilation Failed (ffx_fsr2_accumulate_pass.hlsl - Permutation 15)

It seems to be caused by the macro l. 76 :

#define FFX_FSR2_CONSTANT_BUFFER_1_SIZE (sizeof(cbFSR2) / 4)

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