vkd3d-shader/hlsl: Support fine derivates.

This commit is contained in:
Francisco Casas
2023-06-19 16:05:36 -04:00
committed by Alexandre Julliard
parent ff31284f8d
commit e4d94d955c
Notes: Alexandre Julliard 2023-07-04 23:24:52 +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/224
5 changed files with 40 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ probe (16, 16) rgba (-25.0, -7.0, 5.0, 0.0)
probe (150, 150) rgba (-226.0, -47.0, 45.0, 0.0)
[pixel shader todo]
[pixel shader]
float4 main(float4 pos : sv_position) : sv_target
{
pos /= 10.0;
@@ -74,7 +74,7 @@ float4 main(float4 pos : sv_position) : sv_target
}
[test]
todo draw quad
draw quad
probe (10, 10) rgba (-0.524999976, -0.164999843, 0.104999900, 0.0) 16
probe (11, 10) rgba (-0.689999819, -0.164999843, 0.114999890, 0.0) 32
probe (10, 11) rgba (-0.420000076, -0.154999852, 0.104999900, 0.0) 32