SPIRV-Cross/reference/shaders-no-opt/legacy/frag/switch-single-case-multiple-exit-cfg.legacy.asm.frag
Hans-Kristian Arntzen 23662668dd Attempt more optimal codegen for OpCompositeInsert.
Speculate that we can modify the SSA value in-place. As long as it is
not used after the modify, this is fine.

Also need to make sure we don't attempt to RMW something that is
impossible to modify.
2022-05-18 16:37:33 +02:00

25 lines
410 B
GLSL

#version 100
precision mediump float;
precision highp int;
vec2 _19;
void main()
{
highp vec2 _30;
for (int spvDummy15 = 0; spvDummy15 < 1; spvDummy15++)
{
if (gl_FragCoord.x != gl_FragCoord.x)
{
_30 = _19;
break;
}
highp vec2 _29;
_29.y = _19.y;
_30 = _29;
break;
}
gl_FragData[0] = vec4(_30, 1.0, 1.0);
}