1uniform half4 colorGreen, colorRed; 2 3const int[3] values = int[3](1, 1, 1); 4 5inline int indexArray(int index) { 6 return values[index]; 7} 8 9half4 main(float2 coords) { 10 int ok = indexArray(0) + indexArray(1) + indexArray(2); 11 int undefined = indexArray(-1) + indexArray(3); 12 return colorGreen; 13} 14