vkd3d-shader/hlsl: Handle complex types in add_cast().

This extends the support of this function, whether doing broadcasts or
component-wise casts, to struct and array types.
This commit is contained in:
Francisco Casas
2022-10-19 13:50:50 -03:00
committed by Alexandre Julliard
parent fb751b48c5
commit d93ce28995
Notes: Alexandre Julliard 2022-10-25 22:39:01 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/35
3 changed files with 32 additions and 32 deletions

View File

@@ -16,8 +16,8 @@ float4 main() : sv_target
[test]
todo draw quad
todo probe all rgba (1.0, 2.0, 3.0, 1.0)
draw quad
probe all rgba (1.0, 2.0, 3.0, 1.0)
[pixel shader]
@@ -39,8 +39,8 @@ float4 main() : sv_target
[test]
todo draw quad
todo probe all rgba (5.0, 6.0, 7.0, 8.0)
draw quad
probe all rgba (5.0, 6.0, 7.0, 8.0)
[pixel shader]
@@ -55,8 +55,8 @@ float4 main() : sv_target
[test]
todo draw quad
todo probe all rgba (1.0, 2.0, 3.0, 4.0)
draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0)
[pixel shader]
@@ -86,8 +86,8 @@ float4 main() : sv_target
}
[test]
todo draw quad
todo probe all rgba (7.0, 7.0, 7.0, 7.0)
draw quad
probe all rgba (7.0, 7.0, 7.0, 7.0)
[pixel shader]
@@ -119,8 +119,8 @@ float4 main() : sv_target
}
[test]
todo draw quad
todo probe all rgba (3.0, 3.0, 3.0, 3.0)
draw quad
probe all rgba (3.0, 3.0, 3.0, 3.0)
[pixel shader fail]