On Wed Jan 31 09:32:17 2024 +0000, Giovanni Mascellani wrote:
Yeah, I mostly see the interface between the CPU program and the shaders as binary, not typed. Specifying a type in the `.shader_test` file is a convenience for humans, but I don't think there should be any magic happening. Rather, I'd use the `only()` syntax you just introduced to specify different inputs depending on the SM:
only(sm<4) uniform 0 float4 1.0 2.0 3.0 4.0 only(sm>=4) uniform 0 uint4 1 2 3 4
How does that feel?
This seems reasonable to me, we just have to remember to pass bools and ints as float for sm<4, and in particular, pass `true` as `float 1.0`.