Initial commit.
This commit is contained in:
17
tests/double-mask-test.ispc
Normal file
17
tests/double-mask-test.ispc
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
|
||||
export void f_fu(uniform float ret[], uniform float v[], uniform float u) {
|
||||
double d = v[programIndex];
|
||||
double r = u;
|
||||
if (d <= 2.)
|
||||
r = d;
|
||||
ret[programIndex] = r;
|
||||
}
|
||||
|
||||
export void result(uniform float ret[]) {
|
||||
ret[programIndex] = 5;
|
||||
ret[0] = 1;
|
||||
ret[1] = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user