Home

Awesome

Glslang Zig

Glslang ported to the Zig build system.

Contributions or bug reports are welcome if behavior differs from official build system.

Usage

See shader_compiler for example usage.

Version

See build.zig.zon for current version info.

Known Differences

How To Change the Glslang Version

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.