SPIRV-Cross/reference/shaders/asm/frag/switch-label-shared-block.asm.frag
2019-06-20 11:57:05 +02:00

33 lines
497 B
GLSL

#version 310 es
precision mediump float;
precision highp int;
layout(location = 0) flat in mediump int vIndex;
layout(location = 0) out float FragColor;
void main()
{
highp float _19;
switch (vIndex)
{
case 0:
case 2:
{
_19 = 1.0;
break;
}
default:
{
_19 = 3.0;
break;
}
case 8:
{
_19 = 8.0;
break;
}
}
FragColor = _19;
}