Hi
I have a few beginner question about transpiling using tint.
1. Intermediate variables and assignments
We often see temporary variables created and some variables getting renamed when shader code from glsl is transpiled to wgsl. Why is generally done and what can we do in glsl source to avoid this?
2. Retaining code comments, function names and order.
I understand comments are generally treated as whitespace by compilers and are stripped during the initial parsing/lexing phase as they are not part of the abstract syntax tree (AST) used for the actual compilation and transpilation process. But Is there a way to ensure that code comments are transferred to transpiled code?
Apologies in advance if this has been already discussed before.
Thanks
Ashwin Bhat.