Android APIs
public static final class

ScriptGroup.Closure

extends BaseObj
java.lang.Object
   ↳ android.support.v8.renderscript.BaseObj
     ↳ android.support.v8.renderscript.ScriptGroup.Closure

Class Overview

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
[Expand]
Inherited Methods
From class android.support.v8.renderscript.BaseObj
From class java.lang.Object

Public Methods

public ScriptGroup.Future getGlobal (Script.FieldID field)

Returns the future for a global variable

Parameters
field the field ID for the global variable
Returns
  • a future

public ScriptGroup.Future getReturn ()

Returns the future for the return value

Returns
  • a future