On Tue Mar 12 17:04:02 2024 +0000, Zebediah Figura wrote:
hlsl_fold_static_constants()? Also, a block isn't really an expr...
Uh, the name is because the first moment I conceived this function was to lower the default values in the rhs of constant buffer members. And I see I had the misconception that all the values in state blocks rhs's have to be constants as well.
Also, a block isn't really an expr...
Yes, but I intended to always pass rhs blocks to this function.
Anyways, I am more inclined now to believe that this function should only be for constant buffer default values and state blocks may require a separate one in fx.c.