You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having the same issue, I investigated my own code and can add further tiny detail:
it happen only when same variable names ("foo" in the exemple provided ) are used trough both conditions.
when variables names+references are different, the issue doesn't appear ( but different name referencing same variable will fail).
So the current "bandaid" is to duplicate variable/operation before the condition ( break referencing ).
then merge/replace them after the whole if-else evaluation.
Description
When nesting If- and Else-nodes in TSL, the code compilation gets messed up.
Consider for example the following TSL code:
Here it is clear that every element of the outputBuffer should be set to 1*2=2, the initial value of variable foo.
However, it gets transpiled to the following wgsl code:
Where nodeVar0 gets set to an uninitialized nodeVar1 for every instanceIndex except 0 and 1.
This breaks for example the mx_hsvtorgb() function in the current release r176.
See the attached jsfiddle for a live example.
Live example
Screenshots
No response
Version
r176-dev
The text was updated successfully, but these errors were encountered: