Documentation
¶
Overview ¶
Command witgen writes the core imports of a WIT interface for Go guests (GOOS=wasip1): one //go:wasmimport per function and resource drop, with its Canonical ABI core signature (package wit), and a table from import name to a call taking and returning core values as uint64. The guest package lowers and lifts with package wit around it, so guest and host share one implementation of the ABI.
go run ./internal/cmd/witgen --wit webgpu/wit/webgpu.wit --wit webgpu/wit/surface.wit \ --interface webgpu --interface surface --interface surface-webgpu --package wasigpu --out wasigpu/imports_wasip1.go
Click to show internal directories.
Click to hide internal directories.