18 Apr
2023
18 Apr
'23
1:57 p.m.
On Tue Apr 18 13:57:34 2023 +0000, Henri Verbeet wrote:
Aside from the clearing issue, would a test like this make it more obvious that the second draw's uniform data went unused? Right, something along those lines is what I was trying to suggest earlier. I'd still argue all zeroes isn't ideal as a test value though. I suppose we could change the values a bit...
``` [pixel shader] uniform float4 x; float4 main() : sv_target { if (x.x == 9.0f) discard; return x; } [test] uniform 0 float4 1 2 3 4 draw quad probe all rgba (1, 2, 3, 4) uniform 0 float4 9 8 7 6 draw quad probe all rgba (1, 2, 3, 4) ``` -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/136#note_30371