Files
ispc/tests/nested-statics-1.ispc
Matt Pharr 1703f2717c Add some new tests
One tricky pointer one currently hits an assertion (fix forthcoming).
2011-11-30 09:43:25 -08:00

17 lines
316 B
Plaintext

export uniform int width() { return programCount; }
export void f_f(uniform float RET[], uniform float aFOO[]) {
static int a = 1+programIndex;
{
static int a = 0;
++a;
}
RET[programIndex] = a;
}
export void result(uniform float RET[]) {
RET[programIndex] = 1+programIndex;
}