Skip to content

bump: typegpu 0.12.9 (+more) - #3267

Merged
iwoplaza merged 1 commit into
mainfrom
0.12.9
Oct 23, 2026
Merged

iwoplaza merged 1 commit into
mainfrom
0.12.9

Conversation

@iwoplaza

Copy link
Copy Markdown
Collaborator

Released packages:

  • typegpu v0.12.9
  • @typegpu/gl v0.12.8
  • @typegpu/react v0.12.3
  • unplugin-typegpu v0.12.7

Run TypeGPU shaders in Node.js and Deno without a bundler

unplugin-typegpu now ships synchronous module hooks for Node.js 22.15+ and Deno 2.8+, so 'use gpu' functions get transformed when loaded directly by the runtime:

// preload.mjs
import install from 'unplugin-typegpu/node';

install();
node --import ./preload.mjs main.ts
deno run --import ./preload.mjs main.ts

std.isKnownAtComptime and std.typeOf

New comptime probes for writing shader code that adapts to what's known during shader generation. For example, only unroll a loop when the array has a static length:

for (
  const boid of std.isKnownAtComptime(layout.$.boids.length)
    ? tgpu.unroll(layout.$.boids)
    : layout.$.boids
) {
  sum += boid;
}

std.typeOf(value) returns the schema a value will have in the generated shader (e.g. d.f32).

Comparing schemas

d.schemasEqualStructurally and d.schemasEqualNominally compare data schemas, and can be called both in JS and at comptime inside shaders.

Smaller, faster bundles

Unused std functions can now be dropped by bundlers, and the shader-side console.log serializers are only built the first time a log is generated.

💎 Features

🗿 Fixes / Stability

Full Changelog: v0.12.8...v0.12.9

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

pkg.pr.new

packages
Ready to be installed by your favorite package manager ⬇️

https://pkg.pr.new/software-mansion/TypeGPU/typegpu@07a9a041729240fdd6a470f381f648e1e9a520bc
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/gl@07a9a041729240fdd6a470f381f648e1e9a520bc
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/react@07a9a041729240fdd6a470f381f648e1e9a520bc
https://pkg.pr.new/software-mansion/TypeGPU/unplugin-typegpu@07a9a041729240fdd6a470f381f648e1e9a520bc

benchmark
view benchmark

commit
view commit

@iwoplaza
iwoplaza marked this pull request as ready for review October 23, 2026 17:41
@iwoplaza
iwoplaza requested review from aleksanderkatan, cieplypolar, reczkok and vende11s and a balanced review from Copilot October 23, 2026 17:41
@github-actions

Copy link
Copy Markdown

Bundle size comparison (import * as ... in PR vs import * as ... in target):

🟢 Decreased ➖ Unchanged 🔴 Increased ❔ Unknown
0 355 0 0

No notable changes.

If you wish to run a comparison for other, slower bundlers, run the 'Tree-shake test' from the GitHub Actions menu.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

All four changes are patch-version increments matching the release description, with no blocking issues identified.

No open issues 🎉

What changed in this PR

Prepares the TypeGPU package family for release by updating four package versions to match the announced release targets.

Changes:

  • Bumps typegpu to 0.12.9.
  • Bumps @typegpu/gl, @typegpu/react, and unplugin-typegpu to their announced patch versions.
  • Changes package metadata only; no runtime code is modified.
File Description
packages/​unplugin-typegpu/​package.json Updates version from 0.12.6 to 0.12.7.
packages/​typegpu/​package.json Updates version from 0.12.8 to 0.12.9.
packages/​typegpu-react/​package.json Updates version from 0.12.2 to 0.12.3.
packages/​typegpu-gl/​package.json Updates version from 0.12.7 to 0.12.8.

Review effort: Balanced

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Resolution Time Benchmark

---
config:
  themeVariables:
    xyChart:
      plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
  title "Random Branching (🔴 PR | 🔵 main | 🟢 release)"
  x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
  y-axis "time (ms)"
  line [0.99, 2.10, 4.57, 7.12, 9.45, 14.81, 28.98, 26.96]
  line [1.08, 2.10, 4.34, 7.53, 8.27, 14.07, 25.92, 27.96]
  line [1.06, 2.09, 4.60, 7.72, 9.10, 12.77, 26.14, 27.27]
Loading
---
config:
  themeVariables:
    xyChart:
      plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
  title "Linear Recursion (🔴 PR | 🔵 main | 🟢 release)"
  x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
  y-axis "time (ms)"
  line [0.31, 0.51, 0.75, 0.94, 1.21, 1.26, 1.54, 1.65]
  line [0.31, 0.57, 0.77, 0.90, 1.21, 1.29, 1.47, 1.63]
  line [0.37, 0.54, 0.74, 0.90, 1.20, 1.24, 1.54, 1.67]
Loading
---
config:
  themeVariables:
    xyChart:
      plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
  title "Full Tree (🔴 PR | 🔵 main | 🟢 release)"
  x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
  y-axis "time (ms)"
  line [0.94, 2.65, 4.70, 7.77, 13.47, 28.54, 60.07, 123.37]
  line [1.13, 2.45, 4.53, 8.63, 13.94, 27.96, 60.48, 121.12]
  line [0.99, 2.30, 4.35, 7.55, 13.50, 27.81, 59.62, 119.68]
Loading

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • typegpu 0.12.8 → 0.12.9, @typegpu/gl 0.12.7 → 0.12.8, @typegpu/react 0.12.2 → 0.12.3, unplugin-typegpu 0.12.6 → 0.12.7 — patch version bumps in the four package manifests; the set and increments match the PR body's released-packages list exactly.

This is a pure release-metadata change with no behavioral surface. All inter-package references use the workspace:/workspace:^/workspace:~ protocol, so no dependency ranges need editing. @typegpu/gl (exact workspace: peer on typegpu) is correctly re-bumped alongside typegpu; the caret-peer satellite packages are unaffected by a patch bump and correctly stay as-is. The repo carries no .changeset directory or CHANGELOG.md files, and prior bump commits touched only package.json, so no additional generated files are expected.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes since the previous review

  • Merge main into 0.12.9 (e9b4305d) — the branch was brought up to date with main. The PR diff is byte-for-byte unchanged (same four version bumps, same file hashes), so the merge introduced no new reviewable content. The prior approval stands.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@iwoplaza
iwoplaza merged commit cbaa505 into main Oct 23, 2026
7 of 8 checks passed
@iwoplaza
iwoplaza deleted the 0.12.9 branch October 23, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants