In Android's Renderscript, using the rs_script_call structure to restrict the range of the allocation that is operated upon during a rsForEach call
Using Android's RenderScript, I am trying to restrict the range of the allocation that is operated upon during a rsForEach call. According to the documentation you can achieve this by passing in a rs_script_call structure but whenever I try this the application crashes. How is the rs_script_call structure correctly setup and passed into the rsForEach call? I am using the HelloCompute RenderScript example as the basis for the code. The minimum Android sdk version is set to 15 and therefore using the rsForEach that takes 6 arguments. Here is the adapted mono.rs: #pragma version(1) #pragma rs