mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
tests/hlsl: Use explicit infinities in half.shader_test.
We used to need workarounds when we used scanf() to parse float numbers, but now we use strtof() which supports "inf" properly. On the other hand, on some platforms it is the workaround that now fails with a range error.
This commit is contained in:
committed by
Henri Verbeet
parent
2b68f488f4
commit
85a1fb6e47
Notes:
Henri Verbeet
2025-10-27 19:10:33 +01:00
Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1799
@@ -91,13 +91,13 @@ float4 main() : sv_target
|
|||||||
[test]
|
[test]
|
||||||
uniform 0 float4 0.0 0.0 0.0 0.0
|
uniform 0 float4 0.0 0.0 0.0 0.0
|
||||||
draw quad
|
draw quad
|
||||||
probe (0, 0) rgba(0.0, 0.0, 0.0, 0.0)
|
probe (0, 0) f32(0.0, 0.0, 0.0, 0.0)
|
||||||
uniform 0 float4 3.0 5.0 -0.2 -10.0
|
uniform 0 float4 3.0 5.0 -0.2 -10.0
|
||||||
draw quad
|
draw quad
|
||||||
probe (0, 0) rgba(15.0, 10.0, -9.99755859e-002, 5.0)
|
probe (0, 0) f32(15.0, 10.0, -9.99755859e-002, 5.0)
|
||||||
uniform 0 float4 32768.0 32768.0 -32768.0 -32768.0
|
uniform 0 float4 32768.0 32768.0 -32768.0 -32768.0
|
||||||
draw quad
|
draw quad
|
||||||
probe (0, 0) rgba(1e100, 1e100, -16384.0, 16384.0)
|
probe (0, 0) f32(inf, inf, -16384.0, 16384.0)
|
||||||
uniform 0 float4 0.000062 0.000062 5.97e-8 5.97e-8
|
uniform 0 float4 0.000062 0.000062 5.97e-8 5.97e-8
|
||||||
draw quad
|
draw quad
|
||||||
probe (0, 0) rgba(0.0, 1.23977661e-004, 0.0, 0.0)
|
probe (0, 0) f32(0.0, 1.23977661e-004, 0.0, 0.0)
|
||||||
|
|||||||
Reference in New Issue
Block a user