webgpu-canvas

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

WebGPU canvas

A native MyGo window whose left viewport is an application-owned WebGPU render target. The callback receives the renderer's device, command encoder and target texture, encodes a pass, and MyGo samples the result in the same submitted frame. The controls around it are ordinary MyGo input.

# A cgo-enabled macOS build uses WebGPU by default.
go run ./examples/webgpu-canvas

# A cgo-free build needs the shared fake-cgo runtime tag.
CGO_ENABLED=0 go run -tags mygo_webgpu,nofakecgo ./examples/webgpu-canvas

The renderer and application share the wgpu-native device and collection queue. There is no readback or pixel upload; the target is an RGBA8 texture sampled by the native scene pass.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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