bgfx/3rdparty/glsl-optimizer/tests/fragment/bug-loop-share-index-out.txt

34 lines
590 B
Text
Raw Normal View History

2014-03-29 19:26:01 -04:00
uniform int loopNum;
void main ()
{
vec4 r_1;
int myIdx_2;
r_1 = vec4(0.0, 0.0, 0.0, 0.0);
myIdx_2 = 1;
2015-07-28 23:04:55 -04:00
while (true) {
if ((myIdx_2 >= loopNum)) {
break;
};
2014-03-29 19:26:01 -04:00
r_1.x = (r_1.x + 1.0);
r_1.y = (r_1.y + 2.0);
r_1.z = (r_1.z + 3.0);
2015-07-28 23:04:55 -04:00
myIdx_2++;
2014-03-29 19:26:01 -04:00
};
myIdx_2 = 2;
2015-07-28 23:04:55 -04:00
while (true) {
if ((myIdx_2 >= loopNum)) {
break;
};
2014-03-29 19:26:01 -04:00
r_1.x = (r_1.x + 1.0);
r_1.y = (r_1.y + 2.0);
r_1.z = (r_1.z + 3.0);
2015-07-28 23:04:55 -04:00
myIdx_2++;
2014-03-29 19:26:01 -04:00
};
gl_FragColor = r_1;
}
2014-10-11 15:32:43 -04:00
// stats: 13 alu 0 tex 4 flow
// uniforms: 1 (total size: 0)
// #0: loopNum (high int) 1x1 [-1]