Documentation
¶
Overview ¶
Command triangle is a WASI container that draws a spinning triangle on a surface through wasi:webgpu and wasi-gfx:surface: in the playground the surface is a pane of the dashboard. It draws a number of frames (120 by default, or the first argument) and reports the rate the host paced it to; with "input" as the second argument it also prints the pointer presses and keys the pane receives.
GOOS=wasip1 GOARCH=wasm go build -o triangle.wasm ./examples/triangle wctr run --gpu IMAGE [frames [input]]
Click to show internal directories.
Click to hide internal directories.