Skip to content

Conversation

@cieplypolar
Copy link
Collaborator

@cieplypolar cieplypolar commented Dec 15, 2025

  • very naive implementation (just to experiment with wgslGenerator)
  • move validation to wgslGenerator
  • add support for vectors
  • add unit tests
  • add test example (rewrote some examples)

Waits for #2021.
Closes #1971.

@github-actions
Copy link

github-actions bot commented Dec 15, 2025

pkg.pr.new

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

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

benchmark
view benchmark

commit
view commit

@cieplypolar cieplypolar changed the title [WIP] feat: for ... of ... loop support feat: for ... of ... loop support Dec 17, 2025
@cieplypolar cieplypolar marked this pull request as ready for review December 17, 2025 09:57
@cieplypolar cieplypolar requested review from aleksanderkatan, iwoplaza, lursz and reczkok and removed request for iwoplaza December 17, 2025 09:57
Copy link
Contributor

@aleksanderkatan aleksanderkatan left a comment

Choose a reason for hiding this comment

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

Great! 🧨🤘

Copy link
Collaborator

@iwoplaza iwoplaza left a comment

Choose a reason for hiding this comment

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

Awesome work! 👏

@github-actions
Copy link

📊 Bundle Size Comparison

📈 Summary

  • 📈 Increased: 6 bundles

  • 📉 Decreased: 0 bundles

  • Unchanged: 18 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 258.07 kB ($${\color{red}+0.5\%}$$) 285.13 kB ($${\color{red}+0.5\%}$$)
importEntireLibraryUnused.ts 0 B (➖) 0 B (➖)
stdImportEverything.ts 113.10 kB (➖) 117.60 kB (➖)
stdImportOneDirect.ts 61.97 kB (➖) 62.92 kB (➖)
stdImportOneStar.ts 61.97 kB (➖) 62.92 kB (➖)
tgpuImportEverything.ts 239.34 kB ($${\color{red}+0.7\%}$$) 266.08 kB ($${\color{red}+0.6\%}$$)
tgpuImportOne.ts 239.35 kB ($${\color{red}+0.7\%}$$) 266.09 kB ($${\color{red}+0.6\%}$$)

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.

feat: Support for (... of ...) loops

4 participants