public class RenderScript extends Object
For more information about creating an application that uses Renderscript, read the Renderscript developer guide.
Modifier and Type | Class and Description |
---|---|
static class |
RenderScript.Priority
RenderScript worker threads priority enumeration.
|
static class |
RenderScript.RSErrorHandler
Runtime error base class.
|
static class |
RenderScript.RSMessageHandler
Base class application should derive from for handling RS messages
coming from their scripts.
|
Modifier and Type | Method and Description |
---|---|
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.
|
static RenderScript |
create(Context ctx,
int sdkVersion)
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.
|
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.
|
static void |
setupDiskCache(File cacheDir)
Sets the directory to use as a persistent storage for the
renderscript object file cache.
|
public static void setupDiskCache(File cacheDir)
cacheDir
- A directory the current process can write topublic void setMessageHandler(RenderScript.RSMessageHandler msg)
public RenderScript.RSMessageHandler getMessageHandler()
public void setErrorHandler(RenderScript.RSErrorHandler msg)
public RenderScript.RSErrorHandler getErrorHandler()
public void setPriority(RenderScript.Priority p)
p
- New priority to be set.public final Context getApplicationContext()
public static RenderScript create(Context ctx, int sdkVersion)
ctx
- The context.public static RenderScript create(Context ctx)
ctx
- The context.public void contextDump()
public void finish()
public void destroy()