WGSL — WebGPU Shading Language
What
WGSL is the shader language WebGPU uses — Rust-flavored syntax (typed, ownership-aware vibes, @group(0) @binding(0) var<uniform> ...), structurally similar to SPIR-V's semantics but human-readable. It's the only shader language WebGPU accepts at runtime; HLSL and GLSL must be cross-compiled.
Why It's In The Canon
WGSL is what every web shader is going to be written in for the next 10–20 years. It deliberately rejected GLSL backwards-compatibility in favor of a clean type system and explicit binding declarations, and the wisdom of that choice will compound as the language matures.
For practice: if you're writing a generative system, a custom material, a compute kernel for color grading or ML preprocessing, you're writing WGSL. Treat it like a first-class language, not a "shader thing". The grammar is small, the tooling is improving fast (wgsl_reflect, online editors, language servers), and the constraints (no preprocessor, explicit binding groups, structured uniforms) actually make code more reviewable than GLSL ever was.
