bkaradzic / bgfx

Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
https://bkaradzic.github.io/bgfx/overview.html
BSD 2-Clause "Simplified" License
15.05k stars 1.94k forks source link

gl_NumWorkGroups doesn't compile when the target is DirectX #3255

Open abdullahoday710 opened 8 months ago

abdullahoday710 commented 8 months ago

compiling a compute shader with shaderc that uses gl_NumWorkGroups fails when the target is directx, however it compiles when the target is opengl, any suggestions on how to fix it ?

bkaradzic commented 8 months ago

You would need to pass that as uniform for now.