Download Latest Version typegpu v0.11.8, @typegpu_cli v0.11.2 source code.tar.gz (169.8 MB)
Email in envelope

Get an email when there's a new version of TypeGPU

Home / v0.11.4
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-05-08 3.6 kB
typegpu v0.11.4, @typegpu_react (+more) source code.tar.gz 2026-05-08 168.1 MB
typegpu v0.11.4, @typegpu_react (+more) source code.zip 2026-05-08 168.8 MB
Totals: 3 Items   336.9 MB 0

typegpu v0.11.4

🚀 Features

Low-level array buffer manipulation APIs

The functions previously used internally by buffer.write, buffer.patch and buffer.write APIs are now exposed, allowing you to read from and write into ArrayBuffers using TypeGPU schemas. More about this here.

:::ts
const buffer = new ArrayBuffer(d.sizeOf(Boid));

// update entire buffer
writeToArrayBuffer(buffer, Boid, { pos: d.vec3f(1, 2, 3), vel: d.vec3f(0, 1, 0) });

// patch just the velocity
patchArrayBuffer(buffer, Boid, { vel: d.vec3f(0, 0, 1) });

// read
const boid = readFromArrayBuffer(buffer, Boid);

Resolution errors now hint at solutions referring to original source code

There is JavaScript code that we restrict users from writing, and when we detect such a case, we throw a descriptive error of what was done incorrectly, and how to fix it. Up until now, those hints referred to the generated WGSL code, but that was sometimes hard to relate back to the original source code the user wrote.

In typegpu v0.11.4, hints are now surfaced in JavaScript, which should allow you to locate the errors much faster.

withPerformanceCallback on guarded compute pipelines

:::ts
const pipeline = root
  .createGuardedComputePipeline(() => {
    // ...
  })
  .withPerformanceCallback((start, end) => {
    const durationNs = Number(end - start);
    console.log(`Pipeline execution time: ${durationNs} ns`);
  });

🗿 Fixes / Stability

📖 Docs

🔧 Internal / Refactors

@typegpu/react v0.11.0 (first release 🚀)

This new package introduces hooks that make working with TypeGPU in React and React Native simple and straightforward. For more info, head over to the Tutorial and Documentation.

unplugin-typegpu v0.11.3

Full Changelog: https://github.com/software-mansion/TypeGPU/compare/v0.11.3...v0.11.4

Source: README.md, updated 2026-05-08