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.
GOOS=wasip1 GOARCH=wasm go build -o triangle.wasm ./examples/triangle wctr run --gpu IMAGE [frames]
Click to show internal directories.
Click to hide internal directories.