Once I declared my array, if I need to update an element later how should I do ? I guess we use array.elementAssign() but I’m not sure on how to use this method
Thanks !
The toVar() is optional but I would recommend it if you are referring to arr more than once. It can also improve the readability of the transpiled code if you use toVar() with the name parameter.
E.g. the below code will name the variable boneMatrices in WGSL or GLSL.