Skip to content

Conversation

@cieplypolar
Copy link
Collaborator

Before:

  • Array expression was resolved immediately when the NODE.arrayExpr was encountered in the wgsl generator. Since the resulting snippet's value was a string, we couldn't really access array values.

Now:

  • The NODE.arrayExpr returns an intermediate representation (ArrayExpression). Thereby, we delayed its resolution.

Closes #2017.

@github-actions
Copy link

github-actions bot commented Jan 8, 2026

pkg.pr.new

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

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

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.

fix: arrayExpr is resolved too early

2 participants