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

This commit is contained in:
Conor McCarthy
2023-11-09 13:43:34 +10:00
committed by Alexandre Julliard
parent 130e7bdf0f
commit 3c4631a4d4
Notes: Alexandre Julliard 2023-11-15 22:58:28 +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/459
8 changed files with 98 additions and 20 deletions

View File

@@ -29,7 +29,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.1 3.0 4.0 5.0
todo(sm>=6) draw quad
draw quad
probe all rgba (1.1, 2.0, 0.0, 0.0)
[pixel shader]
@@ -42,11 +42,26 @@ float4 main() : sv_target
return float4(f1, f2, f3, 0.0);
}
[require]
shader model < 6.0
[test]
uniform 0 float4 1.0 0.0 0.0 0.0
todo(sm>=6) draw quad
draw quad
probe all rgba (0.5, 0.6, 0.7, 0.0)
[require]
shader model >= 6.0
[test]
uniform 0 float4 1.0 0.0 0.0 0.0
draw quad
probe all rgba (0.5, 0.2, 0.7, 0.0)
[require]
% reset requirements
[pixel shader fail(sm>=6)]
float4 x, y, z;