fredakilla / brtshaderc

bgfx runtime shader compiler. Library version of the bgfx shaderc tool to build bgfx shaders from sources at runtime.
41 stars 13 forks source link

bgfx with built-in brtshaderc fork #10

Open matheusrsimon opened 1 year ago

matheusrsimon commented 1 year ago

I've forked bgfx and integrated brtshaderc so it now can compile shaders at runtime.

I did this, instead of patching brtshaderc itself because it required changes on shaderc.cpp and shaderc_spirv.cpp.

tritao commented 6 months ago

To anyone who uses the fork above, be careful, its subtly broken, leading to shaderc not building the correct uniforms data and bgfx reporting wrong uniform info for shaders.

See https://github.com/tritao/bgfx/commit/b902de20bd9eb2a5b47e7b7f2c6b9264cdd32a0f for fix.