SPIRV-Cross/reference/shaders-no-opt/asm/frag/switch-single-case-multiple-exit-cfg.asm.frag
Chip Davis 5547b25afe Interleave undef values with constants and types.
Undef values may be of struct type and may be used in constants.
Therefore, they must be interleaved with constants and types.

Fixes the rest of the Vulkan CTS test
`dEQP-VK.spirv_assembly.instruction.compute.opundef.undefined_spec_constant_composite`.

(Please excuse the churn in the reference output; it's an inevitable
result of this change.)
2022-11-20 02:08:37 -08:00

27 lines
420 B
GLSL

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