Skip to content

v0.2.0

Choose a tag to compare

@matiasngf matiasngf released this 30 Jul 23:58
· 337 commits to main since this release
d1ee246

vgpu 0.2.0

The tree-shakeable, gpu-first release. npm install vgpu

Highlights

  • Free functions over a minimal kernel: effect(gpu, shader), draw(gpu, …), geometry(gpu, …), frame(gpu, cb), clock(gpu) — apps pay only for what they import (an effect-only app ships ~25 KB gzip; init() alone is ~1 KB). The gpu.* facade is gone; see the migration table in the package CHANGELOG.
  • Typed WGSL imports everywhere: .wgsl files import as typed modules in webpack, Vite, Next.js (guide included) and plain Node; third-party and monorepo workspace WGSL packages resolve in every layout (npm, pnpm, Yarn PnP).
  • Perlin and simplex noise in @vgpu/wgsl-std (noise/perlin, noise/simplex + fbm variants) with guaranteed (-1,1) ranges, GPU-verified against a bit-exact reference — and @vgpu/wgsl-std now ships with vgpu.
  • Mesh→Geometry rename, scene tree phase 1, per-experience bundle budgets enforced in CI, clearColor per target, frame.cancel(), external-ticker support via clock(gpu).advance().
  • Agent-first docs: npx vgpu guides you (or your agent) to the offline docs workflow; vgpu docs find matches what agents actually type; runnable examples served from https://vgpu.sh.

Validated by three independent agent-driven integration builds (Next.js, Vite, headless Node) before promotion. Full details in each package's CHANGELOG.