> Actually I just mean it loads the entire shader + shader configuration (including a > list of what sliders to make available to the user in the interface) from an external > file, so you can put whatever the hell you want there as long as it's valid. > > basically you'd just specify -shader blah and it would load blah.shd, which contains > information on everything else that needs loading and what should appear onscreen > etc. > > blah.shd could even reference hlsl / glsl versions of the shader files, so a well > made shader would have code for both (and one without could throw an error if you > attempted to use it in an unsupported mode)
BGFX has the concept of a single shader that can be compiled to multiple targets. From there the issue becomes how to represent the shader chain, but I have a really good idea on how to implement this, and I plan to do so in the next month or two.