Closed NoFr1ends closed 3 years ago
Building bgfx-sys v0.2 under Windows fails with the following error:
bgfx/src/renderer_d3d11.cpp(3744): error C2065: 'BGFX_BUFFER_COMPUTE_FORMAT_MASK': undeclared identifier bgfx/src/renderer_d3d11.cpp(3744): error C2065: 'BGFX_BUFFER_COMPUTE_FORMAT_SHIFT': undeclared identifier error occurred: Command "Z:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "bx/include/compat/msvc" "-I" "bgfx/3rdparty/dxsdk/include" "-I" "bgfx/3rdparty/khronos" "-I" "bgfx/3rdparty" "-I" "bgfx/include" "-I" "bx/include" "-I" "bx/3rdparty" "-I" "bimg/include" "-I" "bimg/3rdparty" "-I" "bimg/3rdparty/iqa/include" "-I" "bimg/3rdparty/astc-codec/include" "-I" "bimg/3rdparty/tinyexr/deps/miniz" "-DBGFX_CONFIG_RENDERER_WEBGPU=0" "-DBGFX_CONFIG_RENDERER_GNM=0" "-DBIMG_DECODE_ASTC=0" "-DBGFX_CONFIG_RENDERER_VULKAN=1" "-DBGFX_CONFIG_RENDERER_DIRECT3D11=1" "-D_WIN32" "-D_HAS_EXCEPTIONS=0" "-D_SCL_SECURE=0" "-D_SECURE_SCL=0" "-D__STDC_LIMIT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_CONSTANT_MACROS" "-D_CRT_SECURE_NO_WARNINGS" "-D_CRT_SECURE_NO_DEPRECATE" "-FoE:\\Development\\mmocraft\\target\\debug\\build\\bgfx-sys-c054bcc9fa70ed24\\out\\bgfx/src/renderer_d3d11.o" "-c" "bgfx/src/renderer_d3d11.cpp" with args "cl.exe" did not execute successfully (status code exit code: 2).
Thanks for the report! I will have a look
This should build fine now with bgfx-sys 0.3 and I have updated bgfx-rs to depend on the updated sys-package (so bgfx-rs is now version 0.4)
bgfx-sys
bgfx-rs
Building bgfx-sys v0.2 under Windows fails with the following error: