vkd3d-shader/hlsl: Lower casts to int for SM1.

This commit is contained in:
Francisco Casas
2023-10-20 23:23:46 -03:00
committed by Alexandre Julliard
parent e62bd1927e
commit e3ed5ac77e
Notes: Alexandre Julliard 2024-02-15 23:59:05 +01:00
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Matteo Bruni (@Mystral)
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/608
7 changed files with 59 additions and 25 deletions

View File

@@ -13,7 +13,7 @@ probe all rgba (0.0, -7.0, 8.0, 3.0) 4
[pixel shader todo(sm<4)]
[pixel shader]
uniform float4 u;
float4 main() : sv_target
@@ -26,12 +26,12 @@ float4 main() : sv_target
[test]
uniform 0 float4 -0.4 -6.6 7.6 3.4
todo(sm<4) draw quad
draw quad
probe all rgba (-7.0, 8.0, 0.0, 3.0) 4
[pixel shader todo(sm<4)]
[pixel shader]
uniform float4 u;
float4 main() : sv_target
@@ -42,5 +42,5 @@ float4 main() : sv_target
[test]
uniform 0 float4 -1 0 2 10
todo(sm<4) draw quad
draw quad
probe all rgba (-1.0, 0.0, 2.0, 10.0) 4