public
static
final
class
ScriptGroup.Closure
extends BaseObj
java.lang.Object | ||
↳ | android.support.v8.renderscript.BaseObj | |
↳ | android.support.v8.renderscript.ScriptGroup.Closure |
An opaque class for closures
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 addKernel(Script.KernelID, Type, Object...)
or
addInvoke(Script.InvokeID, Object...)
method.
Public methods | |
---|---|
ScriptGroup.Future
|
getGlobal(Script.FieldID field)
Returns the future for a global variable |
ScriptGroup.Future
|
getReturn()
Returns the future for the return value |
Inherited methods | |
---|---|
From
class
android.support.v8.renderscript.BaseObj
| |
From
class
java.lang.Object
|
ScriptGroup.Future getGlobal (Script.FieldID field)
Returns the future for a global variable
Parameters | |
---|---|
field |
Script.FieldID :
the field ID for the global variable |
Returns | |
---|---|
ScriptGroup.Future |
a future |
ScriptGroup.Future getReturn ()
Returns the future for the return value
Returns | |
---|---|
ScriptGroup.Future |
a future |