Console application to pack SPIR-V binary files to cpp header include file
spirvcruncher2 -i <input_filename(s)> -g spirv.core.grammar.json -o embedded_shaders.h
- -i | --input <input_filename> ie. use *.spv to pack all shaders into one header
- -o | --output <output_filename>
- -g | --grammar location of the downloaded spir-v grammar file from Khronos
optional:
- -n | --name
- -s | --silent silent
- --raw store canonical spir-v verbatim
- --keepdebug keep debug
- --emit-canonical
(c) 2026 Ossi Luoto. MIT License
Originally inspired from smol-v by Aras Pranckevicius. Please see version 1.0 for more.