Glslang ported to the Zig build system.
Contributions or bug reports are welcome if behavior differs from official build system.
See shader_compiler for example usage.
See build.zig.zon for current version info.
- The official build process has a web target for the
glslangartifact, but this project does not. Contributions are welcome. - The official build process symlinks
glslangtoglslangValidator. This build outputsglslangValidatorinstead ofglslangand does not provide a symlink because the library artifact is already namedglslang. - The tests are not built.
- Compiler flags for exceptions, rtti, etc are not configurable (see build.zig for current values.)
The version of glslang is set in build.zig.zon.
Glslang depends on SPIRV-Headers, and SPIRV-Tools. When changing the glslang version you may need to update these dependencies, to find out if this is necessary check your glslang's known-good.json.
Glslang and SPIRV-Tools' official build processes generate headers at compile time. These are cached in the generated directory, and can be regenerated via the official build processes.