Initial commit.
This commit is contained in:
13
tests/cfor-test-72.ispc
Normal file
13
tests/cfor-test-72.ispc
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
|
||||
export void f_v(uniform float RET[]) {
|
||||
int i; float r = 0.;
|
||||
cfor (i = 0; i < 10; ++i) { r += 2; }
|
||||
RET[programIndex] = r;
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
RET[programIndex] = 20.000000;
|
||||
}
|
||||
Reference in New Issue
Block a user