On Tue Jan 31 18:33:08 2023 +0000, Zebediah Figura wrote:
Right, but above you also say that structs get split up into separate variables for sm5, and that putting object components into a struct is illegal for sm4. If we're going to split up the struct, that would seem to leave all uniform variables with a single register set, no?
Structs have to be split into separated components in sm5 but only **after** register allocation.
This is because register allocation still considers variables as a whole, it is only for the RDEF that components have to be written separately.