Files
filament/third_party/glslang/Test/hlsl.staticFuncInit.frag
Ben Doherty 0548b28535 Update glslang (#526)
* Update glslang

* Update builtinResource

* Add glslang update README
2018-11-27 09:52:03 -08:00

21 lines
245 B
GLSL

static float x = 1.0;
float f1()
{
static float x = 2.0;
x += 10.0;
return x;
}
float f2(float p)
{
static float x = 7.0;
x += p;
return x;
}
float4 main() : SV_TARGET
{
return x + f1() + f1() + f2(5.0) + f2(x);
}