SPVGEN is a library to generate SPIR-V binary. It integrates glslang and SPIRV-Tools.
The APIs are listed in include/spvgen.h.
- InitSpvGen()
- spvCompileAndLinkProgram()
- spvGetSpirvBinaryFromProgram()
- spvDestroyProgram()
- spvAssembleSpirv()
- spvDisassembleSpirv()
- spvOptimizeSpirv()
- spvFreeBuffer()
- spvValidateSpirv()
SPVGEN is now built into amdllpc statically by default. If you want to build a standalone one, follow the steps below:
cd spvgen/external && python fetch_external_sources.py
- Use cmake to build.
cd spvgen
mkdir build
cd build
cmake ..
make -j8