mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-30 22:51:06 +00:00
17 lines
403 B
GLSL
17 lines
403 B
GLSL
float method3(float a) { return 1.0; }
|
|
|
|
struct myContext {
|
|
float method1() { return method2(); }
|
|
float method2() { return method3(1.0); }
|
|
float method3(float a) { return method4(a, a); }
|
|
float method4(float a, float b) { return a + b + f; }
|
|
float f;
|
|
};
|
|
|
|
float4 main() : SV_TARGET0
|
|
{
|
|
myContext context;
|
|
context.f = 3.0;
|
|
return (float4)context.method1();
|
|
}
|