v0.2.0
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). Thegpu.*facade is gone; see the migration table in the package CHANGELOG. - Typed WGSL imports everywhere:
.wgslfiles 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-stdnow ships withvgpu. - Mesh→Geometry rename, scene tree phase 1, per-experience bundle budgets enforced in CI,
clearColorper target,frame.cancel(), external-ticker support viaclock(gpu).advance(). - Agent-first docs:
npx vgpuguides you (or your agent) to the offline docs workflow;vgpu docs findmatches 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.