SPIRV-Cross/reference/shaders-no-opt/asm/frag/switch-merge-to-continue.asm.invalid.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

31 lines
505 B
GLSL

#version 450
layout(location = 0) out vec4 FragColor;
void main()
{
FragColor = vec4(1.0);
for (int i = 0; i < 4; i++)
{
switch (i)
{
case 0:
{
FragColor.x += 1.0;
break;
}
case 1:
{
FragColor.y += 3.0;
break;
}
default:
{
FragColor.z += 3.0;
break;
}
}
}
}