SPIRV-Cross/reference/opt/shaders/frag/hoisted-temporary-use-continue-block-as-value.frag
Dan Sinclair f40c629821 Roll SPIRV-Tools, SPIRV-Headers and GLSLang
This CL updates the three depdencies and updates the tests to handle the
new validation errors which are produced.
2019-12-02 16:17:21 -05:00

29 lines
575 B
GLSL

#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);
mediump int _49;
mediump int _58;
for (mediump int _57 = 0, _60 = 0; _57 < vA; _60 = _58, _57 += _49)
{
if ((vA + _57) == 20)
{
_58 = 50;
}
else
{
_58 = ((vB + _57) == 40) ? 60 : _60;
}
_49 = _58 + 10;
FragColor += vec4(1.0);
}
}