KhronosGroup / glslang

Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator.
Other
3.01k stars 829 forks source link

Allow validation of Vulkan GLSL without writing the SPIR-V to a file #2318

Open paulthomson opened 4 years ago

paulthomson commented 4 years ago

We would like to validate that our Vulkan GLSL is valid via glslangValidator -V100 shader.frag without getting the frag.spv output file.

johnkslang commented 4 years ago

Should be easy enough to not call the AST -> SPIR-V generator; all the semantic checking is done in the front end.

We do have -o <filename> to send SPV where ever you want, but if that's not good, another command-line option to not generated SPIR-V could be added.