Fix various tests/[frs]* files to be correct with 32 and 64-wide targets.
Still todo: tests/c*, tests/test-*
This commit is contained in:
@@ -7,13 +7,14 @@ struct Foo { float f; };
|
||||
|
||||
export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
||||
float a = aFOO[programIndex];
|
||||
Foo foo[17];
|
||||
for (uniform int i = 0; i < 17; ++i)
|
||||
Foo foo[programCount+1];
|
||||
uniform int ind[programCount+1];
|
||||
for (uniform int i = 0; i < programCount+1; ++i) {
|
||||
foo[i].f = a;
|
||||
ind[i] = i+1;
|
||||
}
|
||||
++foo[a].f;
|
||||
assert(programCount <= 16);
|
||||
uniform int i[16] = { 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 };
|
||||
RET[programIndex] = foo[i[programIndex]].f;
|
||||
RET[programIndex] = foo[ind[programIndex]].f;
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) { RET[programIndex] = 2+programIndex; }
|
||||
|
||||
Reference in New Issue
Block a user