blob: f61c5661a1ed4b3131951890b4e1b0a6eadc5910 [file] [log] [blame]
John Kessenichcf6bd062018-07-11 01:09:14 -06001static float x = 1.0;
2
3float f1()
4{
5 static float x = 2.0;
6 x += 10.0;
7 return x;
8}
9
10float f2(float p)
11{
12 static float x = 7.0;
13 x += p;
14 return x;
15}
16
17float4 main() : SV_TARGET
18{
19 return x + f1() + f1() + f2(5.0) + f2(x);
20}