Skip to content
Snippets Groups Projects
Commit 30be83f9 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard
Browse files

tests: Add some 'inline' function modifier tests.

parent 61841e94
No related branches found
No related tags found
1 merge request!301vkd3d-shader/hlsl: Ignore 'inline' modifier for functions.
......@@ -295,3 +295,41 @@ float4 main() : sv_target
[test]
draw quad
probe all rgba (2.0, 3.0, 6.0, 7.0)
% Inline modifier
[pixel shader todo]
inline float func(float a)
{
return a + 1;
}
float4 main() : sv_target
{
float4 a = {func(1.0), func(2.0), func(5.0), func(6.0)};
return a;
}
[test]
todo draw quad
todo probe all rgba (2.0, 3.0, 6.0, 7.0)
% Inline modifier used on entry point
[pixel shader todo]
float func(float a)
{
return a + 1;
}
inline float4 main() : sv_target
{
float4 a = {func(1.0), func(2.0), func(5.0), func(6.0)};
return a;
}
[test]
todo draw quad
todo probe all rgba (2.0, 3.0, 6.0, 7.0)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment