Pure-MoonBit WebGPU bindings over the standard webgpu.h C ABI (runtime-loaded wgpu-native / Dawn, zero link flags)
# Debian/Ubuntu layout from a wgpu-native release
export TYCHO_WGPU_LIB=$PWD/libwgpu_native.so
moon run laplaceliu/tycho_webgpu/smoke| Path | Role |
|---|---|
| types/ | target-agnostic WebGPU enums, usage bitflags, descriptors, and WGSL word helpers (native + js) |
| native/ | native webgpu.h C ABI bindings (native.mbt + wgpu_stub.c, supported_targets = "native") |
| js/ | typed browser navigator.gpu bindings (supported_targets = "js") |
| webgpu.mbt | backward-compatible native facade re-exporting types/ and native/ |
| include/webgpu/ | vendored webgpu.h + wgpu.h |
| smoke/ | headless triangle: pixel gate + validation_errors() == 0 |
fn is_spirv_words(words : FixedArray[UInt]) -> Boolfn wgsl_from_words(words : FixedArray[UInt]) -> Stringfn wgsl_words(source : String) -> FixedArray[UInt]Install
Download zipPure-MoonBit WebGPU bindings over the standard webgpu.h C ABI (runtime-loaded wgpu-native / Dawn, zero link flags)