Skip to content

Library to Generate SPIR-V Binary

License

Notifications You must be signed in to change notification settings

amdrexu/spvgen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPVGEN

SPVGEN is a library to generate SPIR-V binary. It integrates glslang and SPIRV-Tools.

APIs

The APIs are listed in include/spvgen.h and vfx.h.

Initialization

  • InitSpvGen()

Convert GLSL to SPIR-V binary

  • spvCompileAndLinkProgram()
  • spvGetSpirvBinaryFromProgram()
  • spvDestroyProgram()

Assemble SPIR-V

  • spvAssembleSpirv()

Disassemble SPIR-V

  • spvDisassembleSpirv()

Optimize SPIR-V

  • spvOptimizeSpirv()
  • spvFreeBuffer()

Validate SPIR-V

  • spvValidateSpirv()

Parse .pipe file

  • vfxParseFile()
  • vfxGetPipelineDoc()
  • vfxCloseDoc()

How to build

SPVGEN is now built as part of the AMDVLK build system, but is not built by default.

First, follow the AMDVLK instructions to get sources and use cmake to set up the build.

Then, to build SPVGEN, from your builds/Release64 or builds/Debug64 directory, use

(cd ../../../spvgen/external && python fetch_external_sources.py)
make -j$(nproc) spvgen

About

Library to Generate SPIR-V Binary

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 95.0%
  • CMake 5.0%