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

error C2440: ffx_vk.cpp

Open svatostop opened this issue 1 year ago • 0 comments

Hi! We are trying to integrate FSR3 to the project using sources from sdk/ folder. We are running on Windows/Linux using Vulkan.

When compiling on Windows we receive error C2440: cannot convert from 'const wchar_t [2]' to 'wchar_t *const ' / Conversion from string literal loses const qualifier in that place:

#define BINDING_SHIFT(name, shift)                   \
constexpr uint32_t name##_BINDING_SHIFT     = shift; \
constexpr wchar_t* name##_BINDING_SHIFT_STR = L#shift;

changing this locally to:

#define BINDING_SHIFT(name, shift)                   \
constexpr uint32_t name##_BINDING_SHIFT     = shift; \
constexpr wchar_t name##_BINDING_SHIFT_STR[] = L#shift;

fixes the issue

svatostop avatar Oct 22 '24 11:10 svatostop