wgsl-includes 0.0.2

A tiny crate meant to solve two major pain points with naga & wgsl: no validation at compile time and no support for shader includes.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[cfg(test)]
mod tests {
    use wgsl_includes::include_wgsl;

    #[test]
    fn include_wgsl() {
        let shader_src = include_wgsl!("tests/shader.wgsl");
        println!("{}", shader_src);
    }

    #[test]
    fn include_wgsl_resolve() {
        let shader_src = include_wgsl!("tests/shader_resolve.wgsl");
        println!("{}", shader_src);
    }
}