简体   繁体   中英

Is there a callback method informing a RenderScript function or kernel is finished?

I'm thinking about using a RenderScript kernel to do some computation work and, as RenderScript execution is asynchronous, I wonder how I can be informed when the script execution is finished.

So far, I have found no answer neither in the documention nor on the internet. Is there some kind of callback method or any other mechanism to do this?

No, there is no callback mechanism defined by the API. The operations are async, but the only way to get the results back to Java or native code is to copy the data back, which will block until it is complete.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM