
export uniform int width() { return programCount; }


void foo(float &a) {
    a += a;
}

struct Foo {
    float a, b, c;
};

export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
    Foo f = { b, aFOO[programIndex], 1 };
    if (programIndex < 2)
        foo(f.b);
    RET[programIndex] = f.b;
}

export void result(uniform float RET[]) { 
    RET[programIndex] = 1+programIndex;
    RET[0] = 2;
    RET[1] = 4;
}
