Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.

msiglreith/inspirv-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1899045 · Oct 15, 2017
Sep 22, 2016
Oct 12, 2016
Feb 21, 2017
Nov 24, 2016
Jan 22, 2017
Feb 21, 2017
Dec 15, 2016
Sep 19, 2016
Dec 19, 2016
Sep 23, 2016
Sep 23, 2016
Oct 15, 2017

Repository files navigation

inspirv-rust

UPDATE 2: Next design iteration would probably be based on HIR instead of MIR. See more details here. In the meantime, you might want to checkout rlsl!

UPDATE: Development currently slowed down as other projects (i.e gfx-rs) have priority over this one. Will keep on working on it in the future (see above)!

An experimental compiler from Rust to SPIR-V, using the rustc compiler and MIR. The code is based upon [rustc_trans::mir], legacy (actually working) version was based on miri and mir2wasm.

rustc 1.17.0-nightly (0e7727795 2017-02-19)

Build

In order to build the standard and core library directly, you can run:

cargo run -- libcore\lib.rs --target=etc/spirv.json
cargo run -- libstd\lib.rs --extern core=libcore.rlib -L . --target=etc/spirv.json

To build the quad example shader:

cargo run -- rust-examples\quad.rs --extern std=libstd.rlib --extern core=libcore.lib -L . --target=etc/spirv.json

Resources

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

About

Rust (MIR) → SPIR-V (Shader) compiler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published