Add some new tests
One tricky pointer one currently hits an assertion (fix forthcoming).
This commit is contained in:
16
tests/nested-statics.ispc
Normal file
16
tests/nested-statics.ispc
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
|
||||
export void f_f(uniform float RET[], uniform float aFOO[]) {
|
||||
static int a = 1234;
|
||||
{
|
||||
static int a = 0;
|
||||
++a;
|
||||
RET[programIndex] = a;
|
||||
}
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
RET[programIndex] = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user