On 9/28/22 07:06, Giovanni Mascellani wrote:
+[pixel shader] +uniform float3 x;
+float4 main() : SV_TARGET +{
- return float4(normalize(x), 0.0);
+}
+[test] +uniform 0 float4 2.0 3.0 4.0 0.0 +todo draw quad +probe all rgba (0.371390700, 0.557086051, 0.742781401, 0.0)
This one fails here, it needs at least 1 ulps of tolerance.
+[pixel shader] +uniform float1 x;
+float4 main() : SV_TARGET +{
- return normalize(x);
+}
+[test] +uniform 0 float4 2.0 0.0 0.0 0.0 +todo draw quad +probe all rgba (1.0, 1.0, 1.0, 1.0)
While you're at it it would probably be good to check scalars as well.