SPIRV-Cross/reference/opt/shaders/frag/array-lut-no-loop-variable.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

20 lines
340 B
GLSL

#version 310 es
precision mediump float;
precision highp int;
const float _17[5] = float[](1.0, 2.0, 3.0, 4.0, 5.0);
layout(location = 0) out vec4 FragColor;
void main()
{
for (mediump int _46 = 0; _46 < 4; )
{
mediump int _33 = _46 + 1;
FragColor += vec4(_17[_33]);
_46 = _33;
continue;
}
}