Initial commit.
This commit is contained in:
21
tests/cfor-for-loop-nested-continues.ispc
Normal file
21
tests/cfor-for-loop-nested-continues.ispc
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
|
||||
export void f_f(uniform float RET[], uniform float aFOO[]) {
|
||||
float a = aFOO[programIndex];
|
||||
int i, j;
|
||||
float r = 0;
|
||||
cfor (i = 0; i < a+1; ++i) {
|
||||
if (i == 1)
|
||||
continue;
|
||||
cfor (j = 0; j < a; ++j) {
|
||||
if (a == 2)
|
||||
continue;
|
||||
}
|
||||
++r;
|
||||
}
|
||||
RET[programIndex] = r;
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) { RET[programIndex] = 1+programIndex; }
|
||||
Reference in New Issue
Block a user