On Mon May 22 13:33:34 2023 +0000, Giovanni Mascellani wrote:
I'm not sure I like this (specifically, emitting a variable name that it mangled or not depending on the name itself). I guess you're doing it to mimic native?
No, this is never visible in native. I originally wrote this part, and the motivation was to avoid creating multiple variables with the same name. In order to do it differently we'd need to adjust hlsl_add_var() and hlsl_get_var(), and we may also want to adjust dump_var().