Most visited

Recently visited

ScriptGroup.Closure

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...)方法创建的。

Summary

Public methods

ScriptGroup.Future getGlobal(Script.FieldID field)

返回全局变量的未来

ScriptGroup.Future getReturn()

返回返回值的未来

Inherited methods

From class android.support.v8.renderscript.BaseObj
From class java.lang.Object

Public methods

getGlobal

ScriptGroup.Future getGlobal (Script.FieldID field)

返回全局变量的未来

Parameters
field Script.FieldID: the field ID for the global variable
Returns
ScriptGroup.Future a future

getReturn

ScriptGroup.Future getReturn ()

返回返回值的未来

Returns
ScriptGroup.Future a future

Hooray!