SPIRV-Cross/shaders-msl/frag/for-loop-continue-control-flow.frag

12 lines
185 B
GLSL
Raw Normal View History

#version 450
layout(location = 0) out vec4 FragColor;
void main()
{
FragColor = vec4(0.0);
for (int i = 0; i < 3; (0 > 1) ? 1 : i ++)
{
int a = i;
FragColor[a] += float(i);
}
}