Renderscript usage

风流意气都作罢 提交于 2019-12-08 04:55:42

问题


Can I use renderscript in an application that is meant to be for android 2.2 and up? Because I know that it has been used for wallpapers, but only internal. Did that change, because renderscript is public now? I am building an application for the tablet, and i am writing it in renderscript, but i want to be able to release it for mobile phones as well. Porting the renderscript code to open gl es 2.0 or sth would be very very hard work for me.


回答1:


Renderscript is a 3.0+ API only. Renderscript was present in 2.2 but the API (and language and compiler) changed a lot in 3.0.




回答2:


Google has published a compatibility library for Renderscript, which allows you to use it starting from Android 2.2 (API8).

The disadvantage is that it uses the CPU unless the OS version is 4.3 and above.

more information about it is available on the android developers blog, here



来源:https://stackoverflow.com/questions/8564517/renderscript-usage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!