Skip to content
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

wgsl to tsl transpiler example #30536

Open
Makio64 opened this issue Feb 16, 2025 · 2 comments
Open

wgsl to tsl transpiler example #30536

Makio64 opened this issue Feb 16, 2025 · 2 comments

Comments

@Makio64
Copy link
Contributor

Makio64 commented Feb 16, 2025

Description

Would be great to add WGSL to TSL example.

The goal, port faster code & example from webgpu to tsl, also as we saw in glsl decoder it helps to find bug.

Solution

Add a new example for wgsl to tsl

Alternatives

Modify the current example with a radio button to select glsl or wgsl

Additional context

It help porting code to tsl & detect bug in the translation.

@Mugen87
Copy link
Collaborator

Mugen87 commented Feb 17, 2025

The TSL transpiler was mainly developed to support the transition from WebGLRenderer to WebGPURenderer. Or in other words to support the conversion of custom materials written in GLSL to TSL based node materials.

Granted, a WGSLDecoder could be a useful tool in certain scenarios but since it would not ease the switch from WebGLRenderer to WebGPURenderer, this feature request has a low priority right now, imo.

@Makio64
Copy link
Contributor Author

Makio64 commented Feb 17, 2025

Yeah, to me it was to translate some advanced webgpu example liks msdf text, marching cubes, etc..

But I understand it's not a priority. Probably worth doing it in near futur when more webgpu examples are in the wild 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants