1#pragma version(1) 2#pragma rs java_package_name(foo) 3 4typedef struct { 5 int i; 6} myStruct; 7 8/* Test old-style kernel */ 9void root(const myStruct *in, int *out) { 10 *out = in->i; 11} 12 13/* Test new-style kernel */ 14myStruct RS_KERNEL kernel_returning_myStruct(int in) { 15 myStruct out = { in }; 16 return out; 17} 18 19int RS_KERNEL kernel_with_myStruct_param(myStruct in) { 20 return in.i; 21} 22