如何使用 rsSetElementAt_type() 函数设置全局渲染脚本的值

How to set values of a renderscript globalusing rsSetElementAt_type() function

在 Android RenderScript 中:

一个内核不能有超过一个输入或一个输出分配。如果需要多个输入或输出,这些对象应绑定到 rs_allocation 脚本全局变量并通过 rsGetElementAt_type()rsSetElementAt_type().

从内核或可调用函数访问

现在我知道函数 rsGetElementAt_type() 有三个参数 :

rs_allocation input , uint32_t x and uint 32_t y 

但我不知道如何设置全局值 rsSetElementAt_type()

任何人都可以告诉我这个函数有哪些参数以及顺序是什么?

我搜索了 android 文档和 google 但找不到

这取决于 Allocation 中包含的类型,但您可以找到详细信息 Renderscript Runtime API Reference page