vkd3d-shader/hlsl: Handle scalar conditions in ternaries.

This commit is contained in:
Zebediah Figura
2024-01-16 18:09:43 -06:00
committed by Alexandre Julliard
parent 2c8751478f
commit 11112798c8
Notes: Alexandre Julliard 2024-01-18 23:20:41 +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/571
2 changed files with 14 additions and 5 deletions

View File

@@ -114,7 +114,7 @@ float4 main() : sv_target
[test]
draw quad
todo probe all rgba (5.0, 6.0, 7.0, 1.0)
probe all rgba (5.0, 6.0, 7.0, 1.0)
% More restrictions are placed on the type of the first (condition) operand,
@@ -265,7 +265,7 @@ draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0)
[pixel shader todo]
[pixel shader]
// "scalar" can mean any 1-component numeric type.
static float1x1 cond = {0};
@@ -278,7 +278,7 @@ float4 main() : sv_target
}
[test]
todo draw quad
draw quad
probe all rgba (5.0, 6.0, 7.0, 8.0)