mellinoe / ShaderGen

Proof-of-concept library for generating HLSL, GLSL, and Metal shader code from C#,
MIT License
497 stars 56 forks source link

[Enhancement] Use GLSLangValidator to validate OpenGL Shaders #97

Open thargy opened 5 years ago

thargy commented 5 years ago

Currently ShaderGen.App only uses glslangvalidator to compile Vulkan. It would be nice to have the option to use it to validate the OpenGL ES and 330 too.

We could do this by extending #93 to include a new option:

V | Validate Validates OpenGLES And OpenGL330 shaders, and in the case of OpenGL450 it only validates and doesn't compile spirv, just outputting the shader code. For other backends is the same as R except does not compile (so requires the output of uncompiled shader).