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

error C2440: ffx_vk.cpp #107

Open
svatostop opened this issue Oct 22, 2024 · 0 comments
Open

error C2440: ffx_vk.cpp #107

svatostop opened this issue Oct 22, 2024 · 0 comments

Comments

@svatostop
Copy link

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

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