I compile renderscript code for Android API16+
I have script function:
void setBuffers(uchar *y, uchar *u, uchar *v){
...
}
With this I want to setup internal pointers (allocations) to the script.
But compiler treats all functions with pointer parameters as if they had RS_KERNEL attribute, and makes it a kernel function, with Java code generated as forEach_setBuffers, or complaining that y must be int (true for kernels).
I assume this auto-kernel mode was added as simplification so that we don't have to mark functions in scripts. Nice.
But I need to make the function invokable so that Java code contains invoke_setBuffers instead. How do I make it?