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
14.59k stars 1.92k forks source link

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

Open abdullahoday710 opened 4 months ago

abdullahoday710 commented 4 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 4 months ago

You would need to pass that as uniform for now.