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

Fix C compilation

Open Pilzschaf opened this issue 1 year ago • 0 comments

To be able to use ffx_spd in C I put the overload of the SpdSetup with fewer parameters inside a __cplusplus preprocessor block. This way it compiles correctly in C mode and C++ user can still benefit from the simpler additional Setup call. Additionally I had to change the casting syntax at two points to the traditional C casting syntax. This should fix compilation of ffx_spd for C compilers.

Pilzschaf avatar Oct 15 '22 08:10 Pilzschaf