hsimpson / vscode-glsllint

VSCode extension to lint GLSL shading language files
MIT License
78 stars 12 forks source link

Could be possible to have linting in just one file? #56

Open dortamiguel opened 2 years ago

dortamiguel commented 2 years ago

I was thinking to merge vertex and fragment shaders into just one file, though I think this will break the linting of this plugin.

There is any way I can merge in one file both while also keeping the linting working?

hsimpson commented 2 years ago

Normally this will not work, because for the underlying linting glslangValidator executable is used. And for linting the stage (e.g. vertex or fragment) must be given.

But depending on your use case and how you using your shaders it can be possible to use it within string literals in JavaScript for example.