I've inserted an rsDebug method in the Android RenderScript sample "Fountain", but I'm getting no messages out of logcat.
Here's a code snippet to demonstrate what I've tried:
int root() {
float dt = min(rsGetDt(), 0.1f);
rsDebug("dt", dt);
...
}
I have been working with the renderscript example CarouselView example from here and here is what I did to get rsDebug to work:
Added debuggable="true" to the application tag in the manifest file:
<application android:debuggable="true">
Added
\#include "rs_debug.rsh"
to the carousel.rs renderscript file.
Besides the answer of Dave i want add following hint:
Messages in renderscript are outputted in the "Verbose"-level. So it may be easy to ignore them because you are in the wrong level.
So in Android Studio you can change the logcat-output here:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With