RenderScript is being deprecated since Android 12. We recommend computationally intensive applications to use Vulkan, the cross platform industry standard API. Please refer to the RenderScript Migration Guide for more details.
To help developers migrate, this sample is created to demonstrate how to apply image filtering to a bitmap with Renderscript Intrinsics, Renderscript Scripts, Vulkan compute pipeline, GLSL compute (in Kotlin). Since the two effects demonstrated can also be implemented using the platform RenderEffect, this is also demonstrated. The sample creates a common ImageProcessor interface that performs two compute tasks:
Both tasks are implemented with RenderScript (intrinsics & custom scripts), GLSL, and Vulkan to demonstrate the migration from RenderScript to Vulkan or GLSL Compute pipelines.
We highly recommend to use Stack Overflow to get help from the Android community.
If you've found an error in this sample, please file an issue: https://github.com/android/renderscript-samples
Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。