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

Provide lib for StandAlone glslangValidator API #2753

Open mm-longcheng opened 3 years ago

mm-longcheng commented 3 years ago

glslangValidator is good as a command line tool. But I want to be able to use the compiler in my own program. Use lib API rather than an independent command line. I tried to modify a copy from StandAlone, but it seems a bit complicated. shaderc is good but i don’t want to introduce too many libraries, glslang is enough.

mbechard commented 3 years ago

You can use glslang as a .lib without any changes. The API is fully exposed, you can copy usage examples from the .exe's workflow and use it in your own code.