public class

RenderScript

extends Object
java.lang.Object
   ↳ android.renderscript.RenderScript
Known Direct Subclasses

Class Overview

Renderscript base master class. An instance of this class creates native worker threads for processing commands from this object. This base class does not provide any extended capabilities beyond simple data processing. For extended capabilities use derived classes such as RenderScriptGL.

Developer Guides

For more information about creating an application that uses Renderscript, read the Renderscript developer guide.

Summary

Nested Classes
enum RenderScript.Priority RenderScript worker threads priority enumeration. 
class RenderScript.RSErrorHandler Runtime error base class. 
class RenderScript.RSMessageHandler Base class application should derive from for handling RS messages coming from their scripts. 
Public Methods
void contextDump()
Print the currently available debugging information about the state of the RS context to the log.
static RenderScript create(Context ctx)
Create a basic RenderScript context.
void destroy()
Destroy this renderscript context.
void finish()
Wait for any commands in the fifo between the java bindings and native to be processed.
final Context getApplicationContext()
Gets the application context associated with the RenderScript context.
RenderScript.RSErrorHandler getErrorHandler()
RenderScript.RSMessageHandler getMessageHandler()
void setErrorHandler(RenderScript.RSErrorHandler msg)
void setMessageHandler(RenderScript.RSMessageHandler msg)
void setPriority(RenderScript.Priority p)
Change the priority of the worker threads for this context.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void contextDump ()

Since: API Level 11

Print the currently available debugging information about the state of the RS context to the log.

public static RenderScript create (Context ctx)

Since: API Level 11

Create a basic RenderScript context.

Parameters
ctx The context.
Returns
  • RenderScript

public void destroy ()

Since: API Level 11

Destroy this renderscript context. Once this function is called its no longer legal to use this or any objects created by this context.

public void finish ()

Since: API Level 11

Wait for any commands in the fifo between the java bindings and native to be processed.

public final Context getApplicationContext ()

Since: API Level 11

Gets the application context associated with the RenderScript context.

Returns
  • The application context.

public RenderScript.RSErrorHandler getErrorHandler ()

Since: API Level 11

public RenderScript.RSMessageHandler getMessageHandler ()

Since: API Level 11

public void setErrorHandler (RenderScript.RSErrorHandler msg)

Since: API Level 11

public void setMessageHandler (RenderScript.RSMessageHandler msg)

Since: API Level 11

public void setPriority (RenderScript.Priority p)

Since: API Level 11

Change the priority of the worker threads for this context.

Parameters
p New priority to be set.