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

This commit is contained in:
Conor McCarthy
2023-10-16 15:41:17 +10:00
committed by Alexandre Julliard
parent 3e0638148a
commit 749df8dec2
Notes: Alexandre Julliard 2023-11-06 23:18:07 +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/409
15 changed files with 256 additions and 25 deletions

View File

@@ -1,3 +1,5 @@
% TODO: dxcompiler emits no loops for any of these test shaders.
[pixel shader]
float a;
@@ -16,7 +18,7 @@ float4 main() : sv_target
[test]
uniform 0 float 5.0
todo(sm>=6) draw quad
draw quad
probe all rgba (50.0, 50.0, 50.0, 50.0)
@@ -39,7 +41,7 @@ float4 main() : sv_target
[test]
uniform 0 float 4.0
todo(sm>=6) draw quad
draw quad
probe all rgba (20.0, 20.0, 20.0, 20.0)
[pixel shader]
@@ -68,7 +70,7 @@ float4 main() : sv_target
[test]
uniform 0 float 4.0
todo(sm>=6) draw quad
draw quad
probe all rgba (409.1, 409.1, 409.1, 409.1)
[pixel shader]
@@ -98,7 +100,7 @@ float4 main() : sv_target
[test]
uniform 0 float 4.0
todo(sm>=6) draw quad
draw quad
probe all rgba (410.1, 410.1, 410.1, 410.1)
% loop attribute by itself