Skip to content

Conversation

@iwoplaza
Copy link
Collaborator

@iwoplaza iwoplaza commented Jan 13, 2026

Changes:

  • Not all arguments are automatically considered ephemeral, meaning unnecessary branching is no longer required.
  • blockVariable is only responsible for generating the variable definition code (easily swappable with a different shader generator)

@github-actions
Copy link

github-actions bot commented Jan 13, 2026

📊 Bundle Size Comparison

📈 Summary

  • 📈 Increased: 3 bundles

  • 📉 Decreased: 6 bundles

  • Unchanged: 15 bundles

  • Unknown: 0 bundles

📋 Bundle Size Comparison

Test tsdown webpack
dataImportEverything.ts 80.03 kB (➖) 85.34 kB (➖)
dataImportOneDirect.ts 40.28 kB (➖) 40.75 kB (➖)
dataImportOneStar.ts 40.28 kB (➖) 40.75 kB (➖)
functionWithUseGpu.ts 268 B (➖) 276 B (➖)
functionWithoutUseGpu.ts 24 B (➖) 59 B (➖)
importEntireLibrary.ts 256.73 kB ($${\color{green}-0.0\%}$$) 283.78 kB ($${\color{green}-0.0\%}$$)
importEntireLibraryUnused.ts 0 B (➖) 0 B (➖)
stdImportEverything.ts 113.11 kB ($${\color{red}+0.0\%}$$) 117.60 kB (➖)
stdImportOneDirect.ts 61.97 kB ($${\color{red}+0.0\%}$$) 62.92 kB (➖)
stdImportOneStar.ts 61.97 kB ($${\color{red}+0.0\%}$$) 62.92 kB (➖)
tgpuImportEverything.ts 237.73 kB ($${\color{green}-0.0\%}$$) 264.41 kB ($${\color{green}-0.0\%}$$)
tgpuImportOne.ts 237.75 kB ($${\color{green}-0.0\%}$$) 264.42 kB ($${\color{green}-0.0\%}$$)

@github-actions
Copy link

github-actions bot commented Jan 13, 2026

pkg.pr.new

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

https://pkg.pr.new/software-mansion/TypeGPU/typegpu@abc84411ba510942d6fd3969635a6ac891d309af
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/noise@abc84411ba510942d6fd3969635a6ac891d309af
https://pkg.pr.new/software-mansion/TypeGPU/unplugin-typegpu@abc84411ba510942d6fd3969635a6ac891d309af

benchmark
view benchmark

commit
view commit

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.

2 participants