mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Lower casts to int for SM1.
This commit is contained in:
committed by
Alexandre Julliard
parent
e62bd1927e
commit
e3ed5ac77e
Notes:
Alexandre Julliard
2024-02-15 23:59:05 +01:00
Approved-by: Zebediah Figura (@zfigura) Approved-by: Matteo Bruni (@Mystral) 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/608
@@ -21,7 +21,7 @@ uniform 0 float4 -0.5 6.5 7.5 3.4
|
||||
draw quad
|
||||
probe all rgba (-1.0, 6.0, 7.0, 3.0) 4
|
||||
|
||||
[pixel shader todo(sm<4)]
|
||||
[pixel shader]
|
||||
uniform float4 u;
|
||||
|
||||
float4 main() : sv_target
|
||||
@@ -34,11 +34,11 @@ float4 main() : sv_target
|
||||
|
||||
[test]
|
||||
uniform 0 float4 -0.5 6.5 7.5 3.4
|
||||
todo(sm<4) draw quad
|
||||
draw quad
|
||||
probe all rgba (6.0, 7.0, -1.0, 3.0) 4
|
||||
|
||||
|
||||
[pixel shader todo(sm<4)]
|
||||
[pixel shader]
|
||||
uniform int4 u;
|
||||
|
||||
float4 main() : sv_target
|
||||
@@ -52,5 +52,5 @@ float4 main() : sv_target
|
||||
[test]
|
||||
if(sm<4) uniform 0 float4 -1 6 7 3
|
||||
if(sm>=4) uniform 0 int4 -1 6 7 3
|
||||
todo(sm<4) draw quad
|
||||
draw quad
|
||||
probe all rgba (6.0, 7.0, -1.0, 3.0) 4
|
||||
|
Reference in New Issue
Block a user