1 // -target-api 0 2 #pragma version(1) 3 #pragma rs java_package_name(com.example.foo) 4 5 int __attribute__((kernel)) foo(int a) { 6 return a; 7 } 8 9 rs_allocation g_in; 10 rs_allocation g_out; 11 12 int __attribute__((kernel)) goo(int a) { 13 rsForEach(foo, g_in, g_out); 14 return a; 15 } 16 17 void bar() { 18 rsForEach(foo, g_in, g_out); 19 } 20 21 22