Files
ispc/tests/insert-1.ispc
Matt Pharr 5a53a43ed0 Finish support for 64-bit types in stdlib. Fixes issue #14.
Add much more suppport for doubles and in64 types in the standard library, basically supporting everything for them that are supported for floats and int32s.  (The notable exceptions being the approximate rcp() and rsqrt() functions, which don't really have sensible analogs for doubles (or at least not built-in instructions).)
2011-07-07 13:25:55 +01:00

14 lines
328 B
Plaintext

export uniform int width() { return programCount; }
export void f_f(uniform float RET[], uniform float aFOO[]) {
int64 a;
for (uniform int i = 0; i < programCount; ++i)
a = insert(a, i, (int64)i);
RET[programIndex] = a;
}
export void result(uniform float RET[]) {
RET[programIndex] = programIndex;
}