How to copy a 2D array to a RenderScript Allocation in Kotlin

前端 未结 0 1744
滥情空心
滥情空心 2020-11-30 16:28

I try to pass a 2D float array to RenderScript, but the app keep crash.

val a = arrayOf(floatArrayOf(1f, 2f, 3f), floatArrayOf(4f, 5f, 6f))
val typeBuilder =          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题