Add test for the bug in issue #204.

This commit is contained in:
Matt Pharr
2012-03-27 09:04:45 -07:00
parent d8a8f3a996
commit 62cd3418ca

View File

@@ -0,0 +1,16 @@
export uniform int width() { return programCount; }
float foo(uniform float<4> &vec) {
return vec[programIndex & 3];
}
export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
uniform float<4> vec = { b, -1, 2*b, -b };
RET[programIndex] = foo(vec);
}
export void result(uniform float RET[]) {
uniform float a[4] = { 5, -1, 10, -5 };
RET[programIndex] = a[programIndex & 3];
}