mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
Basically, separate lower_casts_to_int() into the lowering of the CAST and the lowering of the TRUNC, so that TRUNCs that are not part of a cast are lowered as well.
29 lines
389 B
Plaintext
29 lines
389 B
Plaintext
[pixel shader]
|
|
float4 v;
|
|
|
|
float4 main() : sv_target
|
|
{
|
|
float4 ip;
|
|
return modf(v, ip);
|
|
}
|
|
|
|
[test]
|
|
uniform 0 float4 1.2 1.7 -1.2 -1.7
|
|
draw quad
|
|
probe (0, 0) rgba (0.2, 0.7, -0.2, -0.7) 4
|
|
|
|
[pixel shader]
|
|
float4 v;
|
|
|
|
float4 main() : sv_target
|
|
{
|
|
float4 ip;
|
|
modf(v, ip);
|
|
return ip;
|
|
}
|
|
|
|
[test]
|
|
uniform 0 float4 1.2 2.7 -1.2 -2.7
|
|
draw quad
|
|
probe (0, 0) rgba (1.0, 2.0, -1.0, -2.0)
|