WebGPU Shading Language
| WebGPU Shading Language (WGSL) | |
|---|---|
| Latest version | W3C Candidate Recommendation (As of 2025) |
| Organization | |
| Committee |
|
| Domain | |
WebGPU Shading Language (WGSL, internet media type: text/wgsl) is a high-level shading language and the normative shader language for the WebGPU API on the web. WGSL’s syntax is influenced by Rust and is designed with strong static validation, explicit resource binding, and portability in mind for secure execution in browsers. In web contexts, WebGPU implementations accept WGSL source and perform compilation to platform-specific intermediate forms (for example, to SPIR‑V, DXIL, or MSL via the user agent), but such backends are not exposed to web content.