SPIRV-Cross/reference/opt/shaders/frag/selection-block-dominator.frag

20 lines
293 B
GLSL
Raw Normal View History

#version 450
layout(location = 0) flat in int vIndex;
layout(location = 0) out vec4 FragColor;
void main()
{
do
{
if (vIndex != 1)
{
FragColor = vec4(1.0);
break;
}
FragColor = vec4(10.0);
break;
} while(false);
}