On Mon Jun 5 16:50:08 2023 +0000, Francisco Casas wrote:
Ok, I think I understand. I think I'd prefer if we kept two names for
each variable, one for internal indexing and the other to be printed out in RDEF, rather than having that special exception if `tpf.c`, but I think I can tolerate it. I might become more vocal about it, though, if in the future the practice of prepending a variable name with a `<tag>` were to become more frequent. I like the idea of keeping two names for each variable. I would call them `var->name` and `var->display_name`.
I'd still ask for adding some kind of `is_separeted_resource` flag to
`hlsl_ir_var` rather than parsing the variable name in 9/9. I agree with this too.
I'd rather see just a name plus a flag, than an external and internal name.
Honestly the more I think about my suggestion the more I like it; it seems like what the register set logic was built for. I was envisioning that sm1 bool/int/float would work that way as well, although I guess duplicating the variable there is an option too.