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

76 lines
1.3 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;
2018-03-24 03:16:18 +00:00
ivec2 _184;
int _199;
2017-11-22 11:08:06 +00:00
void main()
{
FragColor = 16;
2018-03-24 03:16:18 +00:00
for (int _168 = 0; _168 < 25; )
2017-11-22 11:08:06 +00:00
{
FragColor += 10;
2018-03-24 03:16:18 +00:00
_168++;
continue;
2017-11-22 11:08:06 +00:00
}
2018-03-24 03:16:18 +00:00
for (int _169 = 1; _169 < 30; )
2017-11-22 11:08:06 +00:00
{
FragColor += 11;
2018-03-24 03:16:18 +00:00
_169++;
continue;
2017-11-22 11:08:06 +00:00
}
2018-03-24 03:16:18 +00:00
int _170;
_170 = 0;
for (; _170 < 20; )
2017-11-22 11:08:06 +00:00
{
FragColor += 12;
2018-03-24 03:16:18 +00:00
_170++;
continue;
2017-11-22 11:08:06 +00:00
}
2018-03-24 03:16:18 +00:00
mediump int _62 = _170 + 3;
2017-11-22 11:08:06 +00:00
FragColor += _62;
2018-03-24 03:16:18 +00:00
bool _68 = _62 == 40;
if (_68)
2017-11-22 11:08:06 +00:00
{
2018-03-24 03:16:18 +00:00
for (int _171 = 0; _171 < 40; )
2017-11-22 11:08:06 +00:00
{
FragColor += 13;
2018-03-24 03:16:18 +00:00
_171++;
continue;
2017-11-22 11:08:06 +00:00
}
}
2018-03-24 03:16:18 +00:00
else
2017-11-22 11:08:06 +00:00
{
2018-03-24 03:16:18 +00:00
FragColor += _62;
2017-11-22 11:08:06 +00:00
}
2018-03-24 03:16:18 +00:00
bool _213 = _68 ? true : false;
if (!_213)
2017-11-22 11:08:06 +00:00
{
2018-03-24 03:16:18 +00:00
ivec2 _177;
_177 = mix(ivec2(0), mix(_184, _184, bvec2(_68)), bvec2(_213));
for (; _177.x < 10; )
{
FragColor += _177.y;
ivec2 _167 = _177;
_167.x = _177.x + 4;
_177 = _167;
continue;
}
}
int _216 = _213 ? (_68 ? _199 : _199) : _62;
if (!_213)
{
for (int _191 = _216; _191 < 40; )
{
FragColor += _191;
_191++;
continue;
}
FragColor += _216;
2017-11-22 11:08:06 +00:00
}
}