SPIRV-Cross/reference/opt/shaders/asm/frag/multi-for-loop-init.asm.frag
Hans-Kristian Arntzen af75ef005f Update glslang and SPIRV-Tools.
A lot of changes in spirv-opt output.
Some new invalid SPIR-V was found but most of them were not significant
for SPIRV-Cross, so just marked them as invalid.
2018-09-27 11:10:22 +02:00

23 lines
463 B
GLSL

#version 310 es
precision mediump float;
precision highp int;
layout(location = 0) out vec4 FragColor;
layout(location = 0) flat in mediump int counter;
void main()
{
FragColor = vec4(0.0);
mediump int _53 = 0;
mediump uint _54 = 1u;
for (; (_53 < 10) && (int(_54) < int(20u)); )
{
FragColor += vec4(float(_53));
FragColor += vec4(float(_54));
_54 += uint(counter);
_53 += counter;
continue;
}
}