GPUOpen-Effects / FidelityFX-FSR2

FidelityFX Super Resolution 2
Other
1.96k stars 179 forks source link

Debug Message incorrectly reports DEPTH_INVERTED as present #97

Open LeonBrands opened 1 year ago

LeonBrands commented 1 year ago

The lines:

https://github.com/GPUOpen-Effects/FidelityFX-FSR2/blob/master/src/ffx-fsr2-api/ffx_fsr2.cpp#L316 https://github.com/GPUOpen-Effects/FidelityFX-FSR2/blob/master/src/ffx-fsr2-api/ffx_fsr2.cpp#L322

Report both DEPTH_INFINITE and DEPTH_INVERTED as present, even though the messages are sent from the else statement of the if(inverseDepth) condition, meaning DEPTH_INVERTED can't possibly be present. In addition, the second one reports DEPTH_INFINITE which is not guaranteed either.