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


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.

Summary

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

Public methods

getGlobal

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

getReturn

ScriptGroup.Future getReturn ()

Returns the future for the return value

Returns
ScriptGroup.Future a future

Hooray!