Skip to content

[draft] bump: typegpu v0.12.0#2735

Draft
iwoplaza wants to merge 1 commit into
mainfrom
0.12.0
Draft

[draft] bump: typegpu v0.12.0#2735
iwoplaza wants to merge 1 commit into
mainfrom
0.12.0

Conversation

@iwoplaza

@iwoplaza iwoplaza commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

TODO:

  • Externals v2 - better treeshaking of 'use gpu' functions
  • Xoroshiro the default generator
  • Worklet support
  • Unify first-part utility package resorce allocator APIs (staticCache -> createStaticCache, ...)
  • Unify first-part utility package namespaces (JumpFlood -> jumpFlood, ...)

Optional:

  • Minfication
  • Flexible bitcasts
  • common.attachAutoResizer

@github-actions

github-actions Bot commented Jul 16, 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/eslint-plugin-typegpu@f4fcbf00c9234a4f8c9f8fb25d2acff71b03a2b3
https://pkg.pr.new/software-mansion/TypeGPU/tgpu-gen@f4fcbf00c9234a4f8c9f8fb25d2acff71b03a2b3
https://pkg.pr.new/software-mansion/TypeGPU/tinyest-for-wgsl@f4fcbf00c9234a4f8c9f8fb25d2acff71b03a2b3
https://pkg.pr.new/software-mansion/TypeGPU/typegpu@f4fcbf00c9234a4f8c9f8fb25d2acff71b03a2b3
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/cli@f4fcbf00c9234a4f8c9f8fb25d2acff71b03a2b3
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/color@f4fcbf00c9234a4f8c9f8fb25d2acff71b03a2b3
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/gl@f4fcbf00c9234a4f8c9f8fb25d2acff71b03a2b3
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/noise@f4fcbf00c9234a4f8c9f8fb25d2acff71b03a2b3
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/radiance-cascades@f4fcbf00c9234a4f8c9f8fb25d2acff71b03a2b3
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/react@f4fcbf00c9234a4f8c9f8fb25d2acff71b03a2b3
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/sdf@f4fcbf00c9234a4f8c9f8fb25d2acff71b03a2b3
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/three@f4fcbf00c9234a4f8c9f8fb25d2acff71b03a2b3
https://pkg.pr.new/software-mansion/TypeGPU/unplugin-typegpu@f4fcbf00c9234a4f8c9f8fb25d2acff71b03a2b3

benchmark
view benchmark

commit
view commit

@github-actions

github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown

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

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

import { ... } in PR vs import * as ... in PR (is the library tree-Shakeable?):

Test tsdown
tgpu_init.ts 257.23 kB ($${\color{green}-3.2\%}$$)
tgpu_initFromDevice.ts 256.72 kB ($${\color{green}-3.4\%}$$)
tgpu_resolve.ts 164.59 kB ($${\color{green}-38.1\%}$$)
tgpu_resolveWithContext.ts 164.53 kB ($${\color{green}-38.1\%}$$)
tgpu_bindGroupLayout.ts 68.97 kB ($${\color{green}-74.0\%}$$)
tgpu_mutableAccessor.ts 65.97 kB ($${\color{green}-75.2\%}$$)
tgpu_accessor.ts 65.96 kB ($${\color{green}-75.2\%}$$)
tgpu_privateVar.ts 65.31 kB ($${\color{green}-75.4\%}$$)
tgpu_workgroupVar.ts 65.30 kB ($${\color{green}-75.4\%}$$)
tgpu_const.ts 64.55 kB ($${\color{green}-75.7\%}$$)
tgpu_fn.ts 38.14 kB ($${\color{green}-85.6\%}$$)
tgpu_fragmentFn.ts 38.14 kB ($${\color{green}-85.6\%}$$)
tgpu_vertexFn.ts 37.96 kB ($${\color{green}-85.7\%}$$)
tgpu_computeFn.ts 37.66 kB ($${\color{green}-85.8\%}$$)
tgpu_vertexLayout.ts 26.79 kB ($${\color{green}-89.9\%}$$)
tgpu_comptime.ts 14.48 kB ($${\color{green}-94.6\%}$$)
tgpu_unroll.ts 1.66 kB ($${\color{green}-99.4\%}$$)
tgpu_slot.ts 1.54 kB ($${\color{green}-99.4\%}$$)
tgpu_lazy.ts 1.19 kB ($${\color{green}-99.6\%}$$)

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

@github-actions

github-actions Bot commented Jul 16, 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 [1.07, 2.14, 4.89, 6.45, 8.42, 12.94, 23.23, 27.44]
  line [1.01, 2.02, 4.24, 6.26, 8.00, 12.34, 22.97, 23.81]
  line [1.01, 2.15, 4.52, 6.76, 8.05, 11.89, 23.02, 26.31]
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.35, 0.61, 0.77, 0.93, 1.26, 1.30, 1.58, 1.70]
  line [0.32, 0.52, 0.70, 0.89, 1.22, 1.23, 1.45, 1.66]
  line [0.35, 0.68, 0.77, 0.90, 1.25, 1.27, 1.59, 1.74]
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.88, 2.20, 4.10, 7.14, 13.01, 27.85, 58.74, 121.53]
  line [0.86, 2.22, 4.51, 6.97, 13.46, 27.10, 56.76, 115.93]
  line [0.95, 2.41, 4.82, 7.86, 14.48, 28.88, 60.34, 123.69]
Loading

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.

1 participant