Initial commit.

This commit is contained in:
Matt Pharr
2011-06-21 06:23:29 -07:00
commit 18af5226ba
587 changed files with 45117 additions and 0 deletions

22
tests/short-vec-7.ispc Normal file
View File

@@ -0,0 +1,22 @@
typedef int<4> int4;
export uniform int width() { return programCount; }
void incXY(reference int4 v) {
++v.x;
++v.y;
}
export void f_fu(uniform float ret[], uniform float aa[], uniform float b) {
float a = aa[programIndex];
int4 v0 = { b, 2*b, 3*b, 2 };
incXY(v0);
if (programIndex & 1) incXY(v0);
ret[programIndex] = v0.x + v0.y;
}
export void result(uniform float ret[]) {
ret[programIndex] = 17;
if (programIndex & 1) ret[programIndex] += 2;
}