SPIRV-Cross/reference/opt/shaders/asm/frag/unreachable.asm.frag

25 lines
353 B
GLSL
Raw Normal View History

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