Returning a Renderscript struct from a Renderscript kernel

前端 未结 2 374
南方客
南方客 2020-12-21 07:39

I\'m looking to return an array of struct from my renderscript kernel. My problem is that although I can create an array of the struct in java using the generated code and p

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-21 08:19

    Actually you should use the copy1DRangeToUnchecked method of the Allocation class. You can copy it into your own ByteBuffer and deserialize it yourself.

提交回复
热议问题