Code: Select all
//@insertpiece(some_pieces)
The technique to comment out some lines for debugging purpose is currently unusable.
It would be useful if you can add this feature - make HLMS recognize C-comment syntax and skip them.
Code: Select all
//@insertpiece(some_pieces)
I wanted to use Lua or Python as a means of concatenating the string that would become the shader (e.g. executing PbsTemplate.lua / PbsTemplate.py which spit outs shader code); but that would've added a huge dependency, bloated our code, and have slow shader generation.The preprocessor was written with speed and simplicity in mind. It does not implement an AST or anything fancy. This is very important to account while writing templates because there will be cases when using the preprocessor may feel counter-intuitive or frustrating.
Code: Select all
///This whole line will not be included