2023-02-04 17:40:17 +11:00
# spirv-to-dxil-rs
Safe Rust bindings to [spirv-to-dxil ](https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/microsoft/spirv_to_dxil/spirv_to_dxil.h ).
2023-02-04 18:12:15 +11:00
2023-02-05 09:01:22 +11:00
[![Latest Version ](https://img.shields.io/crates/v/spirv-to-dxil.svg )](https://crates.io/crates/spirv-to-dxil) [![Docs ](https://docs.rs/spirv-to-dxil/badge.svg )](https://docs.rs/spirv-to-dxil) ![License ](https://img.shields.io/crates/l/spirv-to-dxil )
2023-02-04 18:12:15 +11:00
## Building
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 ](https://docs.mesa3d.org/install.html ).
* [Meson ](https://mesonbuild.com/ )
* A compatible C and C++ compiler
* [MSVC 2019 16.11 or later ](https://docs.mesa3d.org/install.html ) is required to build on Windows.
2023-02-04 19:07:48 +11:00
2023-02-04 18:12:15 +11:00
* [Python 3.6 ](https://www.python.org/ ) or later.
2023-02-05 09:01:22 +11:00
Lex and Yacc are not required. Additionally, [CMake 3.8 ](https://cmake.org/ ) or later is required to run the build script.
2023-02-04 18:12:15 +11:00
2023-02-05 08:58:31 +11:00
A script to clone a minimal subset of Mesa required to build spirv-to-dxil has been provided.
2023-02-04 18:12:15 +11:00
```bash
2023-02-05 08:58:31 +11:00
$ ./clone-mesa.sh
2023-02-04 18:12:15 +11:00
$ cargo build
2023-02-04 19:07:48 +11:00
```