mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
tests: Add some 'inline' function modifier tests.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
61841e9423
commit
30be83f911
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
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user