GPUOpen-Effects / FidelityFX-FSR2

FidelityFX Super Resolution 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FSR2.2 Doesn't compile when using FFX_FSR2_EMBED_ROOTSIG

Chrl-Ref opened this issue · comments

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)