SPIRV-Cross/reference/opt/shaders/frag/for-loop-init.frag

62 lines
1.0 KiB
GLSL
Raw Normal View History

2017-11-22 11:08:06 +00:00
#version 310 es
precision mediump float;
precision highp int;
layout(location = 0) out mediump int FragColor;
void main()
{
FragColor = 16;
for (int _140 = 0; _140 < 25; )
2017-11-22 11:08:06 +00:00
{
FragColor += 10;
_140++;
continue;
2017-11-22 11:08:06 +00:00
}
for (int _141 = 1; _141 < 30; )
2017-11-22 11:08:06 +00:00
{
FragColor += 11;
_141++;
continue;
2017-11-22 11:08:06 +00:00
}
int _142;
_142 = 0;
for (; _142 < 20; )
2017-11-22 11:08:06 +00:00
{
FragColor += 12;
_142++;
continue;
2017-11-22 11:08:06 +00:00
}
mediump int _62 = _142 + 3;
2017-11-22 11:08:06 +00:00
FragColor += _62;
if (_62 == 40)
{
for (int _143 = 0; _143 < 40; )
2017-11-22 11:08:06 +00:00
{
FragColor += 13;
_143++;
continue;
2017-11-22 11:08:06 +00:00
}
return;
}
FragColor += _62;
2017-11-22 11:08:06 +00:00
ivec2 _144;
_144 = ivec2(0);
for (; _144.x < 10; )
2017-11-22 11:08:06 +00:00
{
FragColor += _144.y;
ivec2 _139 = _144;
_139.x = _144.x + 4;
_144 = _139;
continue;
2017-11-22 11:08:06 +00:00
}
for (int _145 = _62; _145 < 40; )
2017-11-22 11:08:06 +00:00
{
FragColor += _145;
_145++;
continue;
2017-11-22 11:08:06 +00:00
}
FragColor += _62;
}