bgfx/3rdparty/glsl-optimizer/tests/fragment/bug-const-variable-out.txt
2014-02-10 23:06:13 -08:00

25 lines
386 B
Text

uniform float mode;
void main ()
{
vec4 c_1;
c_1 = gl_FragCoord;
float c_2;
c_2 = gl_FragCoord.x;
float tmpvar_3;
if ((mode == 2.0)) {
tmpvar_3 = c_2;
} else {
if ((mode == 3.0)) {
discard;
};
if ((mode == 10.0)) {
c_2 = 0.1;
};
tmpvar_3 = c_2;
};
c_1.x = tmpvar_3;
gl_FragColor = c_1;
}
// inputs: 1, stats: 4 alu 1 tex 3 flow