wgpu_shader_checker 0.2.0

Macro for checking wgsl shaders at compile time
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
# wgpu_shader_checker
This crate includes a single macro, `include_wgsl`, that replaces the default wgpu macro of the same name. 
It has a similar functionality to the wgpu one, however this macro performs a compile time check on the shader, throwing a compile issue if the shader does not compile.

# Usage
```rs
use wgpu_shader_checker::include_wgsl;

fn main() {
  let shader = include_wgsl!("shaders/shader.wgsl")
}
```