Add more tests of basic gather functionality.

This commit is contained in:
Matt Pharr
2012-07-12 13:56:58 -07:00
parent e09e953bbb
commit d180031ef0
48 changed files with 948 additions and 26 deletions

View File

@@ -1,19 +1,17 @@
export uniform int width() { return programCount; }
export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
uniform int8 x[programCount];
x[programIndex] = programIndex;
int a = aFOO[programIndex]-1;
unsigned int8 v;
if (programIndex < 2)
v = x[a];
else
v = 2;
RET[programIndex] = v;
int zero = 0;
export void f_f(uniform float RET[], uniform float aFOO[]) {
uniform int8 a[programCount];
for (uniform int i = 0; i < programCount; ++i)
a[i] = aFOO[i];
int g = a[programIndex+zero];
RET[programIndex] = g;
}
export void result(uniform float RET[]) {
RET[programIndex] = 2;
RET[0] = 0;
RET[1] = 1;
RET[programIndex] = 1 + programIndex;
}