1float method3(float a) { return 1.0; } 2 3struct myContext { 4 float method1() { return method2(); } 5 float method2() { return method3(1.0); } 6 float method3(float a) { return method4(a, a); } 7 float method4(float a, float b) { return a + b + f; } 8 float f; 9}; 10 11float4 main() : SV_TARGET0 12{ 13 myContext context; 14 context.f = 3.0; 15 return (float4)context.method1(); 16} 17