Skip to content

TSL Transpiler: Introduce WGSLEncoder #31329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 29, 2025
Merged

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Jun 28, 2025

Related issue: #31314

Description

Introduces an initial version of WGSLEncoder.

https://raw.githack.com/mrdoob/three.js/dev/examples/webgpu_tsl_transpiler.html

Summary

  • Automatically creates polyfills, currently for mod().
  • Automatically detects and optimizes for const, let or var
  • Creates a new variable if a value is assigned to a function parameter.
  • Linker/AST improvements TSL Transpiler: Introduce Linker and improvements #31314
  • Others experimental features...
  • Update webgpu_tsl_transpiler example adding GUI and Perlin noise code

@sunag sunag mentioned this pull request Jun 16, 2025
12 tasks
@sunag sunag added this to the r178 milestone Jun 28, 2025
@sunag sunag marked this pull request as ready for review June 29, 2025 02:57
@sunag sunag merged commit 009726f into mrdoob:dev Jun 29, 2025
11 checks passed
@sunag sunag deleted the dev-wgsl-encoder branch June 29, 2025 02:58
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