wgpu_shader_checker

Crates.iowgpu_shader_checker
lib.rswgpu_shader_checker
version0.2.0
created_at2025-02-19 21:32:24.921211+00
updated_at2025-07-31 14:52:02.164895+00
descriptionMacro for checking wgsl shaders at compile time
homepage
repositoryhttps://github.com/ciubix8513/wgpu_shader_checker
max_upload_size
id1561890
size39,240
Luna (Ciubix8513)

documentation

README

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")
}
Commit count: 14

cargo fmt