Safe Rust bindings to spirv-to-dxil.
spirv-to-dxil-rs builds a copy of spirv-to-dxil statically from Mesa. Many of the build requirements are the same as needed to build Mesa.
A compatible C and C++ compiler
Python 3.6 or later.
Lex and Yacc are not required. Additionally, CMake 3.8 or later is required to run the build script.
A script to clone a minimal subset of Mesa required to build spirv-to-dxil has been provided.
bash
$ ./clone-mesa.sh
$ cargo build