// -target-api 0 | |
#pragma version(1) | |
#pragma rs java_package_name(com.example.foo) | |
int RS_KERNEL foo(int a) { | |
return a; | |
} | |
void testStart(rs_allocation in, rs_allocation out) { | |
int (*fp)(int) = &foo; | |
rsForEach(fp, in, out); | |
rsForEach(&foo, in, out); | |
rsForEachWithOptions(fp, NULL, in, out); | |
rsForEachWithOptions(&foo, NULL, in, out); | |
} | |