wgsl.run libwgsl · wasm Open Playground

Write WGSL, validate and run it live in the browser.

An in-browser WGSL validator and playground. No install — powered by libwgsl, the same wgsl_check pipeline as the C library and VS Code extension.

Open Playground Free · runs entirely in your browser
Live preview — edit the shader, watch validation update Open the full Playground ›
compute.wgsl WGSL · compute
Ln 1:Col 1 len 0 err 0 warn 0 UTF-8 · LF · WGSL
wgsl_check
valid
compute.wgsl
no diagnostics — module checks out
1 entry point · 1 resource · libwgsl wgsl_check
0 errors · 0 warnings · libwgsl wgsl_check · LSP-shaped ranges
{
  "entry_points": [{ "name": "main", "stage": "compute" }],
  "resources": [{ "group": 0, "binding": 0 }],
  "structs": [],
  "overrides": []
}
checking WebGPU…
01

at a glance

565,599
CTS compile cases matched
36/36
native test targets passing
0
SPIR-V / MSL / HLSL promises
C99
frontend core · wasm-packaged
02

capabilities

01Spec-facing validator

Lexer, parser, resolver, const-eval, type checker, validator, uniformity, alias analysis, layout checks — through one C API.

const-evaluniformitylayout
02Editor-grade signals

LSP-shaped diagnostic ranges, semantic tokens, hover types, definition lookup, module-summary JSON.

diagnosticssemantic tokenshover
03WebGPU host preview

Run curated render and compute examples, adjust parameters, inspect host plans.

rendercomputeparams
04Shareable projects

Project files and params round-trip through the URL. Send a repro as a link.

url staterepro link
03

pipeline

inWGSL
01Parse
02Resolve
03Type Check
04Validate
05JSON
outWebGPU