#include <rsCppStructs.h>
Public Member Functions | |
bool | init (std::string name, uint32_t flags=0) |
void | setErrorHandler (ErrorHandlerFunc_t func) |
ErrorHandlerFunc_t | getErrorHandler () |
void | setMessageHandler (MessageHandlerFunc_t func) |
MessageHandlerFunc_t | getMessageHandler () |
RSError | getError () |
void | finish () |
The RenderScript context. This class controls initialization, resource management, and teardown.
Definition at line 85 of file rsCppStructs.h.
void android::RSC::RS::finish | ( | ) |
Waits for any currently running asynchronous operations to finish. This should only be used for performance testing and timing.
RSError android::RSC::RS::getError | ( | ) |
Returns current status for the context.
ErrorHandlerFunc_t android::RSC::RS::getErrorHandler | ( | ) | [inline] |
Returns the current error handler function for this context.
Definition at line 113 of file rsCppStructs.h.
MessageHandlerFunc_t android::RSC::RS::getMessageHandler | ( | ) | [inline] |
Returns the current message handler function for this context.
Definition at line 128 of file rsCppStructs.h.
bool android::RSC::RS::init | ( | std::string | name, |
uint32_t | flags = 0 |
||
) |
Initializes a RenderScript context. A context must be initialized before it can be used.
[in] | name | Directory name to be used by this context. This should be equivalent to Context.getCacheDir(). |
[in] | flags | Optional flags for this context. |
void android::RSC::RS::setErrorHandler | ( | ErrorHandlerFunc_t | func | ) |
Sets the error handler function for this context. This error handler is called whenever an error is set.
[in] | func | Error handler function |
void android::RSC::RS::setMessageHandler | ( | MessageHandlerFunc_t | func | ) |
Sets the message handler function for this context. This message handler is called whenever a message is sent from a RenderScript kernel.
[in] | func | Message handler function |