ScriptGroup.Closure


public static final class ScriptGroup.Closure
extends BaseObj

java.lang.Object
   ↳ android.renderscript.BaseObj
     ↳ android.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 ScriptGroup.Builder2.addKernel(KernelID, Type, Object) or ScriptGroup.Builder2.addInvoke(InvokeID, Object) method.

Summary

Public methods

void destroy()

Destroys this Closure and the Allocation for its return value

ScriptGroup.Future getGlobal(Script.FieldID field)

Returns the future for a global variable

ScriptGroup.Future getReturn()

Returns the future for the return value

Protected methods

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

Inherited methods