Skip to content

Ciubix8513/wgpu_shader_checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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")
}

About

Macro for checking wgsl shaders at compile time

Topics

Resources

License

Stars

Watchers

Forks