java.lang.Object | |
↳ | android.renderscript.RenderScript |
This class provides access to a RenderScript context, which controls RenderScript initialization, resource management, and teardown. An instance of the RenderScript class must be created before any other RS objects can be created.
For more information about creating an application that uses RenderScript, read the RenderScript developer guide.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
RenderScript.ContextType | ContextType specifies the specific type of context to be created. | ||||||||||
RenderScript.Priority | RenderScript worker thread priority enumeration. | ||||||||||
RenderScript.RSErrorHandler | The runtime error handler base class. | ||||||||||
RenderScript.RSMessageHandler | The base class from which an application should derive in order to receive RS messages from scripts. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Print the currently available debugging information about the state of
the RS context to the log.
| |||||||||||
Create a RenderScript context.
| |||||||||||
Create a RenderScript context.
| |||||||||||
Destroys this RenderScript context.
| |||||||||||
Wait for any pending asynchronous opeations (such as copies to a RS
allocation or RS script executions) to complete.
| |||||||||||
Gets the application context associated with the RenderScript context.
| |||||||||||
Place a message into the message queue to be sent back to the message
handler once all previous commands have been executed.
| |||||||||||
Change the priority of the worker threads for this context.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Print the currently available debugging information about the state of the RS context to the log.
Create a RenderScript context.
ctx | The context. |
---|---|
ct | The type of context to be created. |
Create a RenderScript context.
ctx | The context. |
---|
Destroys this RenderScript context. Once this function is called, using this context or any objects belonging to this context is illegal.
Wait for any pending asynchronous opeations (such as copies to a RS allocation or RS script executions) to complete.
Gets the application context associated with the RenderScript context.
Place a message into the message queue to be sent back to the message handler once all previous commands have been executed.
Change the priority of the worker threads for this context.
p | New priority to be set. |
---|