Name conflicts not previously present in generated headers from sokol-shdc after 5e42076 #160
Description
I use the generated shader headers from sokol-shdc pretty extensively, often including and using multiple shaders in the same source file - It looks like in 5e42076 uniform buffers, images, and samplers were changed to generate in the reflection headers as "UB/IMG/SMP_<name>"
instead of "UB/IMG/SMP_<program>_<name>"
which gives conflicts when the same name is used (I tend to just call one-off textures "tex" or whatever) across multiple shaders. It seems like vertex attributes are still prefixed with the program name though?
Am I missing something/is there a reason the program name was dropped? if not, can we get it back please? :)
EDIT: this is specifically in the #define
-d names - i.e. #define UB_whatever (0)
. manually prefixing types, especially for uniform blocks only seems like a half solution because then I end up with types like <program>_<program>_vs_params_t
:/