11 lines
295 B
Plaintext
11 lines
295 B
Plaintext
#include "../test_static.isph"
|
|
float bar(float x) { return 2. * x; }
|
|
task void f_f(uniform float RET[], uniform float aFOO[]) {
|
|
float x = aFOO[programIndex];
|
|
RET[programIndex] = extract(bar(x) * -1., 0);
|
|
}
|
|
|
|
task void result(uniform float RET[]) {
|
|
RET[programIndex] = -2.000000;
|
|
}
|