mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
tests: Test multiple calls to the same function in initializers.
This commit is contained in:
parent
0ceecd1225
commit
9dd99a084d
Notes:
Alexandre Julliard
2023-04-13 23:20:40 +02:00
Approved-by: Zebediah Figura (@zfigura) Approved-by: Francisco Casas (@fcasas) Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/124
@ -261,3 +261,37 @@ float4 main() : sv_target
|
|||||||
func(true);
|
func(true);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[pixel shader]
|
||||||
|
float func(float a)
|
||||||
|
{
|
||||||
|
return a + 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
float4 main() : sv_target
|
||||||
|
{
|
||||||
|
return float4(func(1.0), func(2.0), func(5.0), func(6.0));
|
||||||
|
}
|
||||||
|
|
||||||
|
[test]
|
||||||
|
draw quad
|
||||||
|
todo probe all rgba (2.0, 3.0, 6.0, 7.0)
|
||||||
|
|
||||||
|
|
||||||
|
[pixel shader]
|
||||||
|
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]
|
||||||
|
draw quad
|
||||||
|
todo probe all rgba (2.0, 3.0, 6.0, 7.0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user