vkd3d-shader/hlsl: Don't cast all expressions to float.

Instead, allow half, bool, int, and uint, expressions that map to the
same float op to reach sm1_generate_vsir_instr_expr().
This commit is contained in:
Francisco Casas
2025-02-21 15:30:03 -03:00
committed by Henri Verbeet
parent 0ce2b1359f
commit 7cb1970952
Notes: Henri Verbeet 2025-03-03 18:04:53 +01:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1391
5 changed files with 85 additions and 26 deletions

View File

@@ -25,7 +25,7 @@ uniform 0 float4 -2 0 2 -1
draw quad
probe (0, 0) rgba (0.0, 0.0, 1.0, 0.0)
[pixel shader todo(sm<4)]
[pixel shader]
uniform float4 u;
float4 main() : sv_target
@@ -36,5 +36,5 @@ float4 main() : sv_target
[test]
uniform 0 float4 -2.0 1.2 0.2 4.0
todo(sm<4) draw quad
draw quad
probe (0, 0) rgba (0.0, 1.0, 0.2, 1.0)