vkd3d-shader/hlsl: Ignore 'inline' modifier for functions.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov
2023-08-09 01:09:30 +02:00
committed by Alexandre Julliard
parent 30be83f911
commit 18c1477464
Notes: Alexandre Julliard 2023-08-28 22:16:40 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Zebediah Figura (@zfigura)
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/301
3 changed files with 14 additions and 6 deletions

View File

@@ -298,7 +298,7 @@ probe all rgba (2.0, 3.0, 6.0, 7.0)
% Inline modifier
[pixel shader todo]
[pixel shader]
inline float func(float a)
{
return a + 1;
@@ -312,12 +312,12 @@ float4 main() : sv_target
}
[test]
todo draw quad
todo probe all rgba (2.0, 3.0, 6.0, 7.0)
draw quad
probe all rgba (2.0, 3.0, 6.0, 7.0)
% Inline modifier used on entry point
[pixel shader todo]
[pixel shader]
float func(float a)
{
return a + 1;
@@ -331,5 +331,5 @@ inline float4 main() : sv_target
}
[test]
todo draw quad
todo probe all rgba (2.0, 3.0, 6.0, 7.0)
draw quad
probe all rgba (2.0, 3.0, 6.0, 7.0)