SPIRV-Cross/reference/shaders-no-opt/asm/frag/switch-single-case-multiple-exit-cfg.asm.frag
Hans-Kristian Arntzen eb0f0323d3 HLSL: Workaround FXC bugs with degenerate switch blocks.
When we see a switch block which only contains one default block, emit a
do {} while(false) statement instead, which is far more idiomatic and
readable anyways.
2020-06-23 15:39:04 +02:00

27 lines
426 B
GLSL

#version 310 es
precision mediump float;
precision highp int;
layout(location = 0) out highp vec4 _GLF_color;
vec2 _19;
void main()
{
highp vec2 _30;
do
{
if (gl_FragCoord.x != gl_FragCoord.x)
{
_30 = _19;
break;
}
highp vec2 _29 = _19;
_29.y = _19.y;
_30 = _29;
break;
} while(false);
_GLF_color = vec4(_30, 1.0, 1.0);
}