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

Compiling VKD3D tests with VS2022 fails.. #1952

Open
oscarbg opened this issue Mar 21, 2024 · 0 comments
Open

Compiling VKD3D tests with VS2022 fails.. #1952

oscarbg opened this issue Mar 21, 2024 · 0 comments

Comments

@oscarbg
Copy link

oscarbg commented Mar 21, 2024

Hi,
using latest:

*meson 1.4
*cl:

Compilador de optimización de C/C++ de Microsoft (R) versión 19.39.33523 para x64

seems a minor issue:

../tests/d3d12_shaders.c(2594): error C2099: el inicializador no es una constante

[3/4] Compiling C object tests/d3d12.exe.p/d3d12_shaders.c.obj
FAILED: tests/d3d12.exe.p/d3d12_shaders.c.obj
"cl" "-Itests\d3d12.exe.p" "-Itests" "-I..\tests" "-I..\include\private" "-Iinclude" "-I..\include" "-I..\khronos\Vulkan-Headers\include" "-I..\khronos\SPIRV-Headers\include" "-Ilibs\vkd3d-common\libvkd3d_common.a.p" "/MD" "/nologo" "/showIncludes" "/utf-8" "/W3" "/std:c11" "/O2" "/Gw" "-D_GNU_SOURCE" "-DPACKAGE_VERSION=\"2.12\"" "-D_WIN32_WINNT=0x600" "-DVKD3D_NO_TRACE_MESSAGES" "/wd4244" "/wd4101" "/wd4267" "/wd4996" "/wd4334" "/wd4146" "/wd4305" "/Fdtests\d3d12.exe.p\d3d12_shaders.c.pdb" /Fotests/d3d12.exe.p/d3d12_shaders.c.obj "/c" ../tests/d3d12_shaders.c
../tests/d3d12_shaders.c(2594): error C2099: el inicializador no es una constante
ninja: build stopped: subcommand failed.

FIX:
file seems autogenerated so I
changed "static const struct" with "struct" in line 2576 just following line:

static struct named_shader ps_dmodifier = {"dmodifier", ps_dmodifier_code, sizeof(ps_dmodifier_code)};

thanks..

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