public static final class ScriptGroup.Closure extends BaseObj
A closure represents a function call to a kernel or invocable function,
combined with arguments and values for global variables. A closure is
created using the ScriptGroup.Builder2.addKernel(android.support.v8.renderscript.Script.KernelID, android.support.v8.renderscript.Type, java.lang.Object...)
or
ScriptGroup.Builder2.addInvoke(android.support.v8.renderscript.Script.InvokeID, java.lang.Object...)
method.
Modifier and Type | Method and Description |
---|---|
ScriptGroup.Future |
getGlobal(Script.FieldID field)
Returns the future for a global variable
|
ScriptGroup.Future |
getReturn()
Returns the future for the return value
|
public ScriptGroup.Future getReturn()
public ScriptGroup.Future getGlobal(Script.FieldID field)
field
- the field ID for the global variable