java.lang.Object | |
↳ | android.renderscript.ScriptGroup.Builder |
Create a ScriptGroup. There are two steps to creating a ScriptGoup.
First all the Kernels to be used by the group should be added. Once this is done the kernels should be connected. Kernels cannot be added once a connection has been made.
Second, add connections. There are two forms of connections. Kernel to Kernel and Kernel to Field. Kernel to Kernel is higher performance and should be used where possible. The line of connections cannot form a loop. If a loop is detected an exception is thrown.
Once all the connections are made a call to create will return the ScriptGroup object.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a builder for generating a ScriptGroup.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a connection to the group.
| |||||||||||
Adds a connection to the group.
| |||||||||||
Adds a Kernel to the group.
| |||||||||||
Creates the Script group.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a builder for generating a ScriptGroup.
rs | The Renderscript context. |
---|
Adds a connection to the group.
t | The type of the connection. This is used to determine the kernel launch sizes for both sides of this connection. |
---|---|
from | The source for the connection. |
to | The destination of the connection. |
Adds a connection to the group.
t | The type of the connection. This is used to determine the kernel launch sizes on the source side of this connection. |
---|---|
from | The source for the connection. |
to | The destination of the connection. |
Adds a Kernel to the group.
k | The kernel to add. |
---|
Creates the Script group.