| Crates.io | wgpu_shader_checker |
| lib.rs | wgpu_shader_checker |
| version | 0.2.0 |
| created_at | 2025-02-19 21:32:24.921211+00 |
| updated_at | 2025-07-31 14:52:02.164895+00 |
| description | Macro for checking wgsl shaders at compile time |
| homepage | |
| repository | https://github.com/ciubix8513/wgpu_shader_checker |
| max_upload_size | |
| id | 1561890 |
| size | 39,240 |
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.
use wgpu_shader_checker::include_wgsl;
fn main() {
let shader = include_wgsl!("shaders/shader.wgsl")
}