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

@@ -19,8 +19,8 @@ float4 main() : SV_TARGET
}
[test]
todo draw quad
todo probe all rgba (84.0, 84.0, 84.0, 84.0)
draw quad
probe all rgba (84.0, 84.0, 84.0, 84.0)
[pixel shader fail]