triangle

command
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

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]]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL