1uniform half4 colorGreen; 2 3inline half4 initLoopVar() { 4 return half4(0.0625); 5} 6 7inline bool shouldLoop(half4 v) { 8 return v.x < 0.5; 9} 10 11inline half4 grow(half4 v) { 12 return v + half4(0.125); 13} 14 15half4 main(float2 coords) { 16 for (half4 color = initLoopVar(); shouldLoop(color); color = grow(color)) {} 17 18 return colorGreen; 19} 20