SPIRV-Cross/reference/opt/shaders/asm/frag/undef-variable-store.asm.frag
Hans-Kristian Arntzen 7d223b8987 Fix CFG for forwarded temporaries.
Forwarded temporaries would never declare a temporary.
Figure out all result types ahead of time so we can deal with those
temporaries as well.
2018-01-18 12:11:33 +01:00

31 lines
436 B
GLSL

#version 450
layout(location = 0) out vec4 _entryPointOutput;
vec4 _38;
vec4 _50;
void main()
{
vec4 _51;
vec4 _52;
_51 = _50;
for (;;)
{
if (0.0 != 0.0)
{
_52 = vec4(1.0, 0.0, 0.0, 1.0);
break;
}
else
{
_52 = vec4(1.0, 1.0, 0.0, 1.0);
break;
}
_52 = _38;
break;
}
_entryPointOutput = _52;
}