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:
@@ -11,12 +11,12 @@ float f(float x) {
|
||||
}
|
||||
|
||||
export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
||||
float a = aFOO[programIndex];
|
||||
RET[programIndex] = f(a);
|
||||
int a = aFOO[programIndex];
|
||||
RET[programIndex] = f(a % 16);
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
uniform float fib[16] = { 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91, 105, 120, 136 };
|
||||
RET[programIndex] = fib[programIndex];
|
||||
uniform float fib[16] = { 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91, 105, 120, 0 };
|
||||
RET[programIndex] = fib[programIndex % 16];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user