SPIRV-Cross/reference/opt/shaders/frag/hoisted-temporary-use-continue-block-as-value.frag

29 lines
575 B
GLSL
Raw Normal View History

#version 310 es
precision mediump float;
precision highp int;
layout(location = 0) out vec4 FragColor;
layout(location = 0) flat in mediump int vA;
layout(location = 1) flat in mediump int vB;
void main()
{
FragColor = vec4(0.0);
2018-03-24 03:16:18 +00:00
int _58;
for (int _57 = 0, _60 = 0; _57 < vA; FragColor += vec4(1.0), _60 = _58, _57 += (_58 + 10))
{
2018-03-24 03:16:18 +00:00
if ((vA + _57) == 20)
{
2018-03-24 03:16:18 +00:00
_58 = 50;
continue;
}
else
{
2018-03-24 03:16:18 +00:00
_58 = ((vB + _57) == 40) ? 60 : _60;
continue;
}
continue;
}
}