wgpu_shader_checker 0.2.0

Macro for checking wgsl shaders at compile time
Documentation

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

use wgpu_shader_checker::include_wgsl;

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