public static final class ScriptGroup.Closure
extends BaseObj
java.lang.Object | ||
android.support.v8.renderscript.BaseObj | ||
android.support.v8.renderscript.ScriptGroup.Closure |
一个不透明的封闭类
闭包表示对内核或可调用函数的函数调用,以及全局变量的参数和值。 封闭是使用addKernel(Script.KernelID, Type, Object...)
或addInvoke(Script.InvokeID, Object...)
方法创建的。
公共方法(Public methods) |
|
---|---|
ScriptGroup.Future |
getGlobal(Script.FieldID field) 返回全局变量的未来 |
ScriptGroup.Future |
getReturn() 返回返回值的未来 |
继承方法(Inherited methods) |
|
---|---|
![]() android.support.v8.renderscript.BaseObj
|
|
![]() java.lang.Object
|
ScriptGroup.Future getGlobal (Script.FieldID field)
返回全局变量的未来
参数(Parameters) | |
---|---|
field |
Script.FieldID : the field ID for the global variable |
返回(Returns) | |
---|---|
ScriptGroup.Future |
a future |