Everything on this page runs in your browser. There is no server and no WebGPU context. The shader below is checked by the same code the CLI and the editor extension use, compiled to WebAssembly.
wgslender
Loading the minifier…
Loading the minifier…
Waiting for the language server…
Things to try
-
Hover a builtin —
textureSample,sin,mix— for its signature and uniformity rules. -
Rename a function. Click the name
wave, pressF2, and type. Every reference moves with it. (The cursor has to be on the name itself, not on thefnin front of it.) -
Break something. Change
camera.timetocamera.timand watch the squiggle and the Diagnostics panel arrive together — then click the diagnostic to jump to it. -
Turn on Minify insights. Each declaration grows a
byte estimate showing what it costs after minification.
unused_helpergets none: nothing calls it, so it is not in the output at all. The same switch turns on the minify lints, which point out thatcameraandparticlesship under their original names — flip Mangle bindings in the next pane to see what changes. -
Toggle the pills in the Minified panel and watch the
gzip column.
Sort declarationsandScope-local renamedo not shrink the output; they make it compress better.