22
tests/foreach-active-5.ispc
Normal file
22
tests/foreach-active-5.ispc
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
|
||||
export void f_f(uniform float RET[], uniform float aFOO[]) {
|
||||
float a = aFOO[programIndex];
|
||||
RET[programIndex] = a;
|
||||
|
||||
if (programIndex & 1) {
|
||||
foreach_active (i) {
|
||||
if (i & 1)
|
||||
continue;
|
||||
|
||||
int * uniform null = 0;
|
||||
*null = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
RET[programIndex] = (1 + programIndex);
|
||||
}
|
||||
Reference in New Issue
Block a user