vkd3d-shader/hlsl: Inline function calls.

This commit is contained in:
Zebediah Figura
2021-09-11 16:56:04 -05:00
committed by Alexandre Julliard
parent 6177cea31f
commit 4b944517b7
Notes: Alexandre Julliard 2023-02-13 22:20:34 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Francisco Casas (@fcasas)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/85
12 changed files with 383 additions and 66 deletions

View File

@@ -1,4 +1,4 @@
[pixel shader fail todo]
[pixel shader fail]
float4 func();
@@ -121,7 +121,7 @@ void func()
{
}
[pixel shader todo]
[pixel shader]
void func();
@@ -179,7 +179,7 @@ float4 main() : sv_target
todo draw quad
todo probe all rgba (0.1, 0.2, 0.3, 0.4)
[pixel shader todo]
[pixel shader]
float func(in float a, out float b, inout float c)
{
@@ -200,10 +200,10 @@ float4 main() : sv_target
}
[test]
todo draw quad
todo probe all rgba (0.5, 0.6, 0.7, 0)
draw quad
probe all rgba (0.5, 0.6, 0.7, 0)
[pixel shader todo]
[pixel shader]
void func(in float a, inout float2 b)
{
@@ -221,8 +221,8 @@ float4 main() : sv_target
}
[test]
todo draw quad
todo probe all rgba (0.6, 0.1, 0.5, 0)
draw quad
probe all rgba (0.6, 0.1, 0.5, 0)
% Recursion is forbidden.