7d223b8987
Forwarded temporaries would never declare a temporary. Figure out all result types ahead of time so we can deal with those temporaries as well.
20 lines
411 B
GLSL
20 lines
411 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);
|
|
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));
|
|
}
|
|
}
|
|
|