SPIRV-Cross/reference/shaders/asm/frag/unreachable.asm.frag
Hans-Kristian Arntzen 7d223b8987 Fix CFG for forwarded temporaries.
Forwarded temporaries would never declare a temporary.
Figure out all result types ahead of time so we can deal with those
temporaries as well.
2018-01-18 12:11:33 +01:00

29 lines
393 B
GLSL

#version 450
layout(location = 0) flat in int counter;
layout(location = 0) out vec4 FragColor;
vec4 _21;
void main()
{
vec4 _24;
vec4 _33;
_24 = _21;
for (;;)
{
if (counter == 10)
{
_33 = vec4(10.0);
break;
}
else
{
_33 = vec4(30.0);
break;
}
}
FragColor = _33;
}