SPVGEN is a libaray to generate SPIR-V binary. It integrates glslang and SPIRV-Tools.
The APIs are listed in spvgen.h and vfx.h.
- InitSpvGen()
- spvCompileAndLinkProgram()
- spvGetSpirvBinaryFromProgram()
- spvDestroyProgram()
- spvAssembleSpirv()
- spvDisassembleSpirv()
- spvOptimizeSpirv
- spvFreeBuffer
- spvValidateSpirv()
- vfxParseFile()
- vfxGetPipelineDoc()
- vfxCloseDoc()
cd external/
python fetch_external_sources.py
cd ..
cmake -H. -Brbuild64 -DCMAKE_BUILD_TYPE=release -DXGL_LLPC_PATH=<PATH_TO_LLPC>
cd rbuild64
make
cd ..
cmake -H. -Bdbuild64 -DCMAKE_BUILD_TYPE=Debug -DXGL_LLPC_PATH=<PATH_TO_LLPC>
cd dbuild64
make
To build 32bit library, please add "-DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32" in cmake.
SPVGEN depends on LLPC header files. You need to download the files from llpc/include/.