1 2 3 4 5 6 7 8 9
export void simple(uniform float vin[], uniform float vout[], uniform int count) { foreach (index = 0 ... count) { float v = vin[index]; v = sqrt(v); vout[index] = v; } }