-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fix shader_dxbc.h compiling on linux with vulkan #3382
Conversation
This should probably be wrapped in an |
I'm not getting this error when building on Linux with D3D11 and D3D12 only. Env var: |
I haven't tried with D3D11 nor D3D12. What I observed is that the vulkan header includes |
Just built with VK only and still don't get the issue... |
I'm so sorry, I completely forgot to mention that I'm building the amalgamated version of bgfx.
One other possibility would be to put renderer_vk.cpp after shader_dbxbc.cpp in the amalgamated source. Hopefully that helps diagnose the issue. |
Ok lets try like this... I modify src/config.h near top of the file: #define BGFX_CONFIG_RENDERER_VULKAN 1 And then I run this:
I get no issues. |
I'll try to figure out what's wrong with my system and if I can repro I'll reopen. Thank you for your time both 😄 |
On linux when trying to build with vulkan on and opengl off, shader_dxbc.h is included after Xlib.h which includes X.h which in turn
#define None 0
. Undefining so we can properly compile the file.