In particular, this fixes issue #81, where a global variable access was leading to ConstantExpressions showing up in this code, which it wasn't previously expecting.
16 lines
394 B
Plaintext
16 lines
394 B
Plaintext
|
|
float a[100];
|
|
|
|
export uniform int width() { return programCount; }
|
|
|
|
|
|
export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
|
for (uniform int i = 0; i < programCount; ++i)
|
|
a[i] = i*programCount+programIndex;
|
|
RET[programIndex] = a[programIndex+b-5];
|
|
}
|
|
|
|
export void result(uniform float RET[]) {
|
|
RET[programIndex] = (programCount+1) * programIndex;
|
|
}
|