Skip to content Skip to sidebar Skip to footer

Renderscript: Not Matching Function Rsgetelementat_uchar4

I've write very short RS, but after gradle sync Android Studio gives me error Error:(8, 34) error: no matching function for call to 'rsGetElementAt_uchar4' Script: #pragma vers

Solution 1:

I will start with a disclaimer that I don't know much about RenderScript. That said, I think you followed code similar to this question, but you are missing the line:

rs_allocation extra_alloc;

Notice the bit in Java where it is set:

script.set_extra_alloc(inAllocationExtra);

Post a Comment for "Renderscript: Not Matching Function Rsgetelementat_uchar4"