#rendering #shader #pipeline #hlsl #dxc


This crate provides an FFI layer and idiomatic rust wrappers for the new DXC hlsl compiler and validator

9 releases

✓ Uses Rust 2018 edition

0.2.0 Mar 1, 2019
0.1.7 Jan 4, 2019
0.1.6 Dec 15, 2018

#95 in Graphics APIs

Download history 1/week @ 2019-01-21 4/week @ 2019-01-28 4/week @ 2019-02-04 2/week @ 2019-02-11 2/week @ 2019-02-18 17/week @ 2019-02-25 71/week @ 2019-03-04 3/week @ 2019-03-11 13/week @ 2019-03-18 57/week @ 2019-03-25 21/week @ 2019-04-01 3/week @ 2019-04-08 1/week @ 2019-04-22 11/week @ 2019-04-29

64 downloads per month

MIT license

715 lines


Latest version Documentation MIT

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


Add this to your Cargo.toml:

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/


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


  • Graham Wihlidal


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.