| Name | Modified | Size | Downloads / 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);
- feat: Expose schema read-write APIs by @aleksanderkatan in https://github.com/software-mansion/TypeGPU/pull/2411
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.
- feat: Better resolution error hints by @aleksanderkatan in https://github.com/software-mansion/TypeGPU/pull/2404
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`);
});
- feat: withPerformanceCallback on guardedComputePipeline by @cieplypolar in https://github.com/software-mansion/TypeGPU/pull/2424
🗿 Fixes / Stability
- fix: Struct fields not suggested by @aleksanderkatan in https://github.com/software-mansion/TypeGPU/pull/2447
- fix: Keep internal accessor slot unnamed, even after code transforms by @iwoplaza in https://github.com/software-mansion/TypeGPU/pull/2426
- fix: ArrayExpression - immediate index access by @iwoplaza in https://github.com/software-mansion/TypeGPU/pull/2409
- fix: Error when resolving raw external array by @iwoplaza in https://github.com/software-mansion/TypeGPU/pull/2408
📖 Docs
- docs: Just one "Triangle" example by @iwoplaza in https://github.com/software-mansion/TypeGPU/pull/2458
- chore: Update links to logos in READMEs by @iwoplaza in https://github.com/software-mansion/TypeGPU/pull/2468
- docs: New fundamentals by @reczkok and @aleksanderkatan in https://github.com/software-mansion/TypeGPU/pull/2459
- docs: Update "React Native" guide by @iwoplaza in https://github.com/software-mansion/TypeGPU/pull/2464
🔧 Internal / Refactors
- impr:
consoleandMathmethod reference checks by @aleksanderkatan in https://github.com/software-mansion/TypeGPU/pull/2438
@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
- fix: Add missing unplugin-typegpu/rolldown-browser entrypoint by @iwoplaza in https://github.com/software-mansion/TypeGPU/pull/2427
Full Changelog: https://github.com/software-mansion/TypeGPU/compare/v0.11.3...v0.11.4