14 Apr
2023
14 Apr
'23
9:21 a.m.
Giovanni Mascellani (@giomasce) commented about tests/any.shader_test:
+draw quad +probe all rgba (1.0, 1.0, 1.0, 1.0) + +[require] +shader model >= 4.0 + +[pixel shader] +uniform bool4 b; + +float4 main() : sv_target +{ + return any(b); +} + +[test] +uniform 0 uint4 1 1 1 1 This is technically an ABI violation, because `true` is represented in SM4 as `0xffffffff`, not `1`. In practice it shouldn't matter, but given that it's not that hard could you change the shader to
uniform uint4 b;
float4 main() : sv_target
{
return any((bool4)b);
}
and similar for the scalar case? -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/157#note_30056