Initial commit.
This commit is contained in:
17
tests/c-do-2.ispc
Normal file
17
tests/c-do-2.ispc
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
|
||||
|
||||
export void f_v(uniform float RET[]) {
|
||||
int i=0, j=0;
|
||||
do {
|
||||
++j;
|
||||
if (i >= 5) ccontinue;
|
||||
++j;
|
||||
} while (++i < 10);
|
||||
RET[programIndex] = (float)j;
|
||||
}
|
||||
|
||||
|
||||
export void result(uniform float RET[]) { RET[programIndex] = 15; }
|
||||
Reference in New Issue
Block a user