danielscherzer / GLSL

VSIX Project that provides GLSL language integration.
257 stars 28 forks source link

Feature Request: adding custom preprocessor definition #110

Open daniilvinn opened 1 year ago

daniilvinn commented 1 year ago

I have a suggestion to make this extension be able to parse custom preprocessor definitions. Example: in my engine I implemented #stage definition, so I can write all pipeline shader stages in one file, but since it is "unknown preprocessor directive", I have tons of errors by extension's code analyzer.

How I would like to see it: add extension settings menu, which will contain list of custom preprocessor definitions, possibly their values or syntax, so I can write like this: #testmacro <> : <> and extension will understand, that #testmacro has its own syntax.