npm / vgpu
vgpu
What changed in vgpu 0.0 to 0.6, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
16 breaking56 new APIs and options3 performance5 behavior and defaults3 tooling21 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initvgpu 0.618 changes
Breaking changes 1
Preparation must be awaited before entering synchronous frame callbacks.
New APIs and options 9
Canvas surfaces support optional depth/MSAA.
canvasMouseTracker exposes normalized and drawing-buffer pixel coordinates explicitly.
Frame-owned compute passes preserve compute/render ordering and capture managed uniform values per operation.
Device loss has an explicit gpu.lost notification.
Pipelines can be prepared outside frames.
Dynamic shaders use prepareShader() for shader preparation.
Scene composition uses explicit transforms, camera state, hierarchy evaluation and fixed-capacity instances; applications own shading, lights, input handling and scheduling.
Prepared ShaderSource v2 artifacts move WGSL reflection into the build; dynamic shaders use prepareShader().
Next.js Turbopack integrations gain a rule with compiler-aware persistent caches.
Performance 2
Managed uniforms reuse unchanged work.
Repeated encodes reuse unchanged work.
Behavior and default changes 1
Sampled intermediate work uses offscreen targets.
Fixes and other changes 5
Bundle ownership has a clearer contract and diagnostics.
Consumer lifetimes have a clearer contract and diagnostics.
A multi-binding Draw.set({ a, b }) can partially apply before throwing; repair bindings and explicitly re-record affected bundles before replay.
Resource binding validation has a clearer contract and diagnostics.
Odd-length Uint16 index uploads are accepted while logical draw/write bounds are retained.
vgpu 0.512 changes
Breaking changes 2
Allocations are immutable across core and public APIs.
Native tooling requires an Apple Silicon build host, Node.js 22, and Xcode with its Metal compiler component; its worker is ad hoc signed and not notarized.
New APIs and options 3
Authored entry-point metadata is available.
Texture shapes and usage can now be specified explicitly across core and public APIs.
Readback now supports mip and region operations across core and public APIs.
Behavior and default changes 3
WGSL host layouts are intrinsic.
Binding values are strictly JavaScript-owned.
Vulkan is now the default for Node/Linux, including hosts with X11 or Wayland.
Tooling 1
Optional beta tooling generates Swift/Metal packages and bundles a pinned, authenticated Tint worker at installation.
Fixes and other changes 3
Destroyed resources are validated.
Stale bundles are detected.
Replacing target/texture pairs is safer.
vgpu 0.43 changes
Breaking changes 2
Prereleases now use the canary channel, changing how developers select prerelease versions.
frame(gpu, cb) now submits when the callback returns and cancels if it throws.
New APIs and options 1
Adds an adapter for using vgpu with Three.js TSL.
vgpu 0.314 changes
Breaking changes 3
Publishes all fixed-group packages to the latest dist-tag, affecting which release package managers select by default.
EntryPointInfo reflection now returns plain data.
Non-ASCII identifiers are rejected with clear diagnostics.
New APIs and options 5
Adds a hosted HTTP MCP server for VGPU docs and verified examples.
Adds a local STDIO MCP server for VGPU docs and verified examples.
Shader validation now has off, auto, and require modes; bundler loaders never validate WGSL.
This is the validation gate for requiring WGSL validation.
The runtime package is now reachable from CommonJS.
Behavior and default changes 1
WGSL validation now occurs after minification.
Fixes and other changes 5
Failed WGSL imports remain watched so they can recover.
A WGSL compiler fix addresses comparison-operator scope activation.
A WGSL compiler fix addresses leading-dot float literals.
A WGSL compiler fix addresses module-scope shadowing.
adapter-node now provides a software-renderer notice.
vgpu 0.214 changes
Breaking changes 5
clearColor is now per target.
Use the free function frame(gpu, cb) instead of the gpu.* facade; apps pay only for what they import.
Use the free function geometry(gpu, …) instead of the gpu.* facade; the release also renames Mesh to Geometry.
The gpu.* facade is gone; use the free functions instead.
Mesh is renamed to Geometry.
New APIs and options 9
Use the free function clock(gpu) instead of the gpu.* facade; external tickers can advance it.
Supports external tickers via clock(gpu).advance().
Use the free function draw(gpu, …) instead of the gpu.* facade; apps pay only for what they import.
Use the free function effect(gpu, shader) instead of the gpu.* facade; apps pay only for what they import.
Adds frame.cancel().
Adds Perlin noise and fbm variants with guaranteed (-1,1) ranges.
Adds simplex noise and fbm variants with guaranteed (-1,1) ranges.
The package now ships with vgpu and provides Perlin and simplex noise, including fbm variants, with guaranteed (-1,1) ranges.
WGSL files import as typed modules in webpack, Vite, Next.js, and plain Node; third-party and workspace WGSL packages resolve across listed package-manager layouts.
vgpu 0.120 changes
Breaking changes 3
The async API change makes draw() return void.
Removes the old public API surface in the vgpu rewrite.
Introduces ShaderSource as part of the new public API.
New APIs and options 12
Integrated a portable software renderer.
Adds bundles organized by signature.
Adds a compile API.
Adds filter/wrap sugar for creating samplers.
Adds the cubeView helper.
Adds a device error channel.
Adds Device.isCompatibilityMode.
Adds the layerView helper.
Adds a double-buffer helper.
Adds StructuredUniform.
Adds Texture.resize() and a cached view.
Adds hash noise fullscreen helpers for wgsl-std.
Tooling 1
Adds diagnostics through vgpu doctor, helping developers inspect their vgpu setup.
Fixes and other changes 4
Fixes the UV orientation of injected effects.
Surface-frame and pipeline-layout errors are now structured.
adapter-node now supports display-free Vulkan adapters.
The CLI bin was restored and its link made stable.
vgpu 0.023 changes
New APIs and options 17
Adds raw-descriptor pipelines.
Adds the Uniform primitive.
Adds the @vgpu/render/perf package for performance-related functionality.
Device capabilities are now exposed.
Explicit binding helpers were added.
Explicit texture descriptor options are now supported.
Frame and bundle helpers were added.
Render pipeline APIs suitable for homepage use were added.
A WGSL standard utility package was added.
Color utilities for wgsl-std were added.
Math utilities for WGSL were added.
Sampling utilities for wgsl-std were added.
A scaffold and resolver contract were added for WGSL standard utilities.
The WGSL loader adds a minify option.
WGSL declaration emission was added for material textures.
A renderTargetMulti factory and pass support were added for MRT rendering.
Resolved shader dependencies are now exposed.
Performance 1
WGSL declaration dead-code elimination was added.
Tooling 1
A docs CLI was added for working with vgpu documentation.
Fixes and other changes 4
Fixes handling of optional offsets in RenderPass setBindGroup.
Minification now preserves signed exponent literals.
The WGSL loader's HMR plumbing was made production-grade.
The resolver stays fresh across shader edits.