SPIRV-Cross/reference/opt/shaders/asm/frag/multi-for-loop-init.asm.frag

20 lines
411 B
GLSL
Raw Normal View History

#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);
int _53 = 0;
uint _54 = 1u;
for (; (_53 < 10) && (int(_54) < int(20u)); _53 += counter, _54 += uint(counter))
{
FragColor += vec4(float(_53));
FragColor += vec4(float(_54));
}
}