#include "rs_types.rsh"
#include "rs_allocation.rsh"
#include "rs_atomic.rsh"
#include "rs_cl.rsh"
#include "rs_debug.rsh"
#include "rs_element.rsh"
#include "rs_math.rsh"
#include "rs_matrix.rsh"
#include "rs_object.rsh"
#include "rs_quaternion.rsh"
#include "rs_sampler.rsh"
#include "rs_time.rsh"
Data Structures | |
struct | rs_script_call |
Typedefs | |
typedef struct rs_script_call | rs_script_call_t |
Enumerations | |
enum | rs_for_each_strategy |
Functions | |
bool | rsSendToClient (int cmdID) |
bool | rsSendToClient (int cmdID, const void *data, uint len) |
void | rsSendToClientBlocking (int cmdID) |
void | rsSendToClientBlocking (int cmdID, const void *data, uint len) |
void | rsForEach (rs_script script, rs_allocation input, rs_allocation output, const void *usrData, size_t usrDataLen, const rs_script_call_t *) |
void | rsForEach (rs_script script, rs_allocation input, rs_allocation output, const void *usrData, size_t usrDataLen) |
void | rsForEach (rs_script script, rs_allocation input, rs_allocation output) |
todo-jsams
Definition in file rs_core.rsh.
typedef struct rs_script_call rs_script_call_t |
Structure to provide extra information to a rsForEach call. Primarly used to restrict the call to a subset of cells in the allocation.
enum rs_for_each_strategy |
Launch order hint for rsForEach calls. This provides a hint to the system to determine in which order the root function of the target is called with each cell of the allocation.
This is a hint and implementations may not obey the order.
Definition at line 96 of file rs_core.rsh.
void rsForEach | ( | rs_script | script, |
rs_allocation | input, | ||
rs_allocation | output, | ||
const void * | usrData, | ||
size_t | usrDataLen, | ||
const rs_script_call_t * | |||
) |
Make a script to script call to launch work. One of the input or output is required to be a valid object. The input and output must be of the same dimensions. API 10-13
script | The target script to call |
input | The allocation to source data from |
output | the allocation to write date into |
usrData | The user definied params to pass to the root script. May be NULL. |
sc | Extra control infomation used to select a sub-region of the allocation to be processed or suggest a walking strategy. May be NULL. Make a script to script call to launch work. One of the input or output is required to be a valid object. The input and output must be of the same dimensions. API 14+ |
script | The target script to call |
input | The allocation to source data from |
output | the allocation to write date into |
usrData | The user definied params to pass to the root script. May be NULL. |
usrDataLen | The size of the userData structure. This will be used to perform a shallow copy of the data if necessary. |
sc | Extra control infomation used to select a sub-region of the allocation to be processed or suggest a walking strategy. May be NULL. |
void rsForEach | ( | rs_script | script, |
rs_allocation | input, | ||
rs_allocation | output, | ||
const void * | usrData, | ||
size_t | usrDataLen | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void rsForEach | ( | rs_script | script, |
rs_allocation | input, | ||
rs_allocation | output | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
bool rsSendToClient | ( | int | cmdID | ) |
Send a message back to the client. Will not block and returns true if the message was sendable and false if the fifo was full. A message ID is required. Data payload is optional.
bool rsSendToClient | ( | int | cmdID, |
const void * | data, | ||
uint | len | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void rsSendToClientBlocking | ( | int | cmdID | ) |
Send a message back to the client, blocking until the message is queued. A message ID is required. Data payload is optional.
void rsSendToClientBlocking | ( | int | cmdID, |
const void * | data, | ||
uint | len | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.