mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
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:
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
@@ -35,7 +35,7 @@ draw quad
|
||||
probe (0, 0) rgba(0, 0, -12, 14)
|
||||
|
||||
|
||||
[pixel shader todo(sm<4)]
|
||||
[pixel shader]
|
||||
uniform float f;
|
||||
uniform uint u;
|
||||
uniform bool b;
|
||||
@@ -61,7 +61,7 @@ if(sm>=4) uniform 0 float 2.6
|
||||
if(sm>=4) uniform 1 int -2
|
||||
if(sm>=4) uniform 2 int -2
|
||||
if(sm>=4) uniform 3 float -3.6
|
||||
todo(sm<4) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (0.5, 0.5, 0.5, 0.5)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user