On Wed Jan 31 20:24:44 2024 +0000, Zebediah Figura wrote:
uniform has the whole register.``` We should just change the uniform layout then.
Since we will be passing ints using the "only" qualifier as Giovanni suggested, we can now just provide different offsets for the different shader models.
So something like this: ``` uniform 0 int -1 uniform 1 uint 3 uniform 2 int -2 uniform 3 float 0.5 ``` ends ups like this: ``` if(sm<4) uniform 0 float -1 if(sm<4) uniform 4 float 3 if(sm<4) uniform 8 float 1 if(sm<4) uniform 12 float 0.5 if(sm>=4) uniform 0 int -1 if(sm>=4) uniform 1 uint 3 if(sm>=4) uniform 2 int -2 if(sm>=4) uniform 3 float 0.5 ```