I want to access more Elements from one Allocation in RenderScript. Let's take the example code from Google:
uchar4 __attribute__((kernel)) invert(uchar4 in, uint32_t x, uint32_t y) {
uchar4 out = in;
out.r = 255 - in.r;
out.g = 255 - in.g;
out.b = 255 - in.b;
return out;
}
It takes one uchar4 in, who is one Element of the Allocation. Is it possible to access and manipolate more than one Element? Like unrolling a loop with, for example, 8 pixels from a Bitmap.
Thank you.