ScriptGroup creates a group of kernels that are executed
together with one execution call as if they were a single kernel.
The kernels may be connected internally or to an external allocation.
The intermediate results for internal connections are not observable
after the execution of the script.
External connections are grouped into inputs and outputs.
All outputs are produced by a script kernel and placed into a
user-supplied allocation. Inputs provide the input of a kernel.
Inputs bound to script globals are set directly upon the script.
A ScriptGroup must contain at least one kernel. A ScriptGroup
must contain only a single directed acyclic graph (DAG) of
script kernels and connections. Attempting to create a
ScriptGroup with multiple DAGs or attempting to create
a cycle within a ScriptGroup will throw an exception.
Currently, all kernels in a ScriptGroup must be from separate
Script objects. Attempting to use multiple kernels from the same
Script object will result in an
{@link android.support.v8.renderscript.RSInvalidStateException}. |