SPIRV-Cross/reference/opt/shaders/frag/false-loop-init.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

19 lines
325 B
GLSL

#version 310 es
precision mediump float;
precision highp int;
layout(location = 0) out vec4 result;
layout(location = 0) in vec4 accum;
void main()
{
result = vec4(0.0);
for (mediump int _48 = 0; _48 < 4; )
{
result += accum;
_48 += int((accum.y > 10.0) ? 40u : 30u);
continue;
}
}