#shader #pipeline #hlsl #dxc #intellisense

hassle-rs

HLSL compiler library, this crate provides an FFI layer and idiomatic rust wrappers for the new DXC hlsl compiler and validator

10 releases

✓ Uses Rust 2018 edition

new 0.3.0 Jul 14, 2019
0.2.0 Mar 1, 2019
0.1.7 Jan 4, 2019
0.1.6 Dec 15, 2018

#78 in Graphics APIs

Download history 14/week @ 2019-03-30 10/week @ 2019-04-06 2/week @ 2019-04-13 1/week @ 2019-04-20 10/week @ 2019-04-27 10/week @ 2019-05-04 15/week @ 2019-05-11 29/week @ 2019-05-18 28/week @ 2019-05-25 9/week @ 2019-06-01 9/week @ 2019-06-08 12/week @ 2019-06-15 107/week @ 2019-06-22 9/week @ 2019-06-29 53/week @ 2019-07-06

98 downloads per month

MIT license

71KB
2K SLoC

hassle-rs

hassle on travis-ci.com Latest version Documentation Lines of code MIT

This crate provides an FFI layer and idiomatic rust wrappers for the new DirectXShaderCompiler library.

Usage

Add this to your Cargo.toml:

[dependencies]
hassle-rs = "0.2.0"

and add this to your crate root:

extern crate hassle_rs;

Then acquire dxcompiler.dll directly from AppVeyor or compile it from source according to the instructions in the DirectXShaderCompiler GitHub repository and make sure it's in the executable enviroment.

DxcValidator also requires dxil.dll which can be grabbed from any recent Windows 10 SDK flight. More info: https://www.wihlidal.com/blog/pipeline/2018-09-16-dxil-signing-post-compile/

License

Licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT)

Contibutions

  • Graham Wihlidal
  • Tiago Carvalho

Contribution

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

Contributions are always welcome; please look at the issue tracker to see what known improvements are documented.

Dependencies

~735KB