wgsl-play Test Page - Compute

squares (canonical)

Single @buffer, written by an 8-thread workgroup.

Show source

two buffers (input + output)

Both buffers zero-initialized; demonstrates layout, not interesting math.

Show source

struct array

Renders one column per struct field.

Show source

slider drives re-run

Move the k slider; the table re-dispatches on every change.

Show source

rejected: two @compute fns

Show source
Status: waiting

rejected: mixed @compute + @fragment

Show source
Status: waiting

runtime-sized array (host-sized default)

array<f32> with no element count: the playground allocates a 1024-byte default (256 f32s) and renders all rows.

Show source

rejected: matrix in @buffer

Show source
Status: waiting