vkd3d-shader/dxil: Implement the DXIL CAST instruction.

This commit is contained in:
Conor McCarthy
2023-11-07 13:11:51 +10:00
committed by Alexandre Julliard
parent bd77cbb33f
commit 90d178bf12
Notes: Alexandre Julliard 2023-11-10 00:09:32 +01:00
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/436
9 changed files with 197 additions and 24 deletions

View File

@@ -18,7 +18,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 -1.9 -1.0 2.9 4.0
todo draw quad
todo(sm<6) draw quad
probe all rgba (-1.0, -1.0, 2.0, 4.0)
% As above, but cast "x" to float4 first.
@@ -89,5 +89,5 @@ float4 main() : sv_target
[test]
uniform 0 int4 -2 0 1 -3000000
todo draw quad
todo(sm<6) draw quad
probe all rgba (-1.0, 0.0, 1.0, -3000000.0)