On Tue Jul 11 22:31:58 2023 +0000, Zebediah Figura wrote:
I'm not sure I can say 1/9 is going in the wrong direction, but it's going in a direction perpendicular to the right one. We should eventually be able to get to a state where the only thing in hlsl_deref is the path itself, and the type / register set is determined by the user (i.e. which field of a hlsl_resource_load it is). It's not particularly clear to me why 1/9 is here just from reading it—which isn't to say it's wrong or looks wrong, but it'd be nice to have that clarification.
Actually, I guess this is kind of the right direction—if the idea is that the type of a deref is determinable from its path, then widening the use of hlsl_deref_get_type() is an improvement.