Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 20 lines (15 sloc) 0.596 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

export uniform int width() { return programCount; }

export void f_f(uniform float RET[], uniform float aFOO[]) {
    uniform float * uniform buf = uniform new uniform float[32*32];
    for (uniform int i = 0; i < 32*32; ++i)
        buf[i] = i;

    float a = buf[4*programIndex];
    float b = buf[4*programIndex+1];
    float c = buf[4*programIndex+2];
    float d = buf[4*programIndex+3];

    RET[programIndex] = a+b+c+d;;
}

export void result(uniform float RET[]) {
    RET[programIndex] = 4 * programIndex + 4 * programIndex + 1 +
        4 * programIndex + 2 + 4 * programIndex + 3;
}
Something went wrong with that request. Please try again.