Open yh-sb opened 3 years ago
Hello, Thanks for reporting. A pull request to fix those would be appreciated.
Unfortunately I have no idea how to fix this. I have spent a lot of time trying to solve it.
The only solution I can suggest is it add #include <dxgiformat.h>
to backends\imgui_impl_dx12.h.
dxgiformat.h provides only DXGI_FORMAT
type.
If anyone has something working, please share your idea or create pull request.
I am ok to add the #include <dxgiformat.h>
in there but would that solve the second issue in the CPP file?
This is the root cause of imgui_impl_dx12.cpp compilation issue: https://docs.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-d3d12serializerootsignature#remarks
This function has been superceded by D3D12SerializeVersionedRootSignature as of the Windows 10 Anniversary Update (14393).
I already have solution for this and will push both fixes in PR soon.
Version/Branch of Dear ImGui:
Version: 1.85 WIP (18417) Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_dx12.cpp + imgui_impl_glfw.cpp Compiler: GCC 11.2 Operating System: Windows 10
My Issue/Question:
I have found that
backends\imgui_impl_dx12.cpp
compilation fails with GCC 11.2 on Windows 10 with the following log:ImGui already has the following hack in
backends\imgui_impl_dx12.h:20
for MSVC:It would be great to add similar for GCC.