On Fri Apr 14 08:59:27 2023 +0000, Giovanni Mascellani wrote:
Oh, right. I don't think we want to clear before every draw, no. There
may be an argument for clearing at the start of each test, although I think that in that case we'd like to clear with something other than zeroes. Agreed. I wouldn't even bother clearing with something different than zero. Just clear with zero, and if the tests needs something else they can clear explicitly (or render with a trivial pixel shader, if we don't want a `clear` command).
Aside from the clearing issue, would a test like this make it more obvious that the second draw's uniform data went unused?
``` [pixel shader] uniform float4 x;
float4 main() : sv_target { if (x.x == 0.0f) discard; return x; }
[test] uniform 0 float4 1 2 3 4 draw quad probe all rgba (1, 2, 3, 4) uniform 0 float4 0 0 0 0 draw quad probe all rgba (1, 2, 3, 4) ```