Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00024 #ifndef __RS_CORE_RSH__
00025 #define __RS_CORE_RSH__
00026
00027 #define _RS_RUNTIME extern
00028
00029 #include "rs_types.rsh"
00030 #include "rs_allocation.rsh"
00031 #include "rs_atomic.rsh"
00032 #include "rs_cl.rsh"
00033 #include "rs_debug.rsh"
00034 #include "rs_math.rsh"
00035 #include "rs_matrix.rsh"
00036 #include "rs_object.rsh"
00037 #include "rs_quaternion.rsh"
00038 #include "rs_time.rsh"
00039
00040
00041
00047 extern bool __attribute__((overloadable))
00048 rsSendToClient(int cmdID);
00052 extern bool __attribute__((overloadable))
00053 rsSendToClient(int cmdID, const void *data, uint len);
00058 extern void __attribute__((overloadable))
00059 rsSendToClientBlocking(int cmdID);
00063 extern void __attribute__((overloadable))
00064 rsSendToClientBlocking(int cmdID, const void *data, uint len);
00065
00066
00074 enum rs_for_each_strategy {
00075 RS_FOR_EACH_STRATEGY_SERIAL,
00076 RS_FOR_EACH_STRATEGY_DONT_CARE,
00077 RS_FOR_EACH_STRATEGY_DST_LINEAR,
00078 RS_FOR_EACH_STRATEGY_TILE_SMALL,
00079 RS_FOR_EACH_STRATEGY_TILE_MEDIUM,
00080 RS_FOR_EACH_STRATEGY_TILE_LARGE
00081 };
00082
00083
00088 typedef struct rs_script_call {
00089 enum rs_for_each_strategy strategy;
00090 uint32_t xStart;
00091 uint32_t xEnd;
00092 uint32_t yStart;
00093 uint32_t yEnd;
00094 uint32_t zStart;
00095 uint32_t zEnd;
00096 uint32_t arrayStart;
00097 uint32_t arrayEnd;
00098 } rs_script_call_t;
00099
00116 #if !defined(RS_VERSION) || (RS_VERSION < 14)
00117 extern void __attribute__((overloadable))
00118 rsForEach(rs_script script, rs_allocation input,
00119 rs_allocation output, const void * usrData,
00120 const rs_script_call_t *sc);
00124 extern void __attribute__((overloadable))
00125 rsForEach(rs_script script, rs_allocation input,
00126 rs_allocation output, const void * usrData);
00127 #else
00128
00147 extern void __attribute__((overloadable))
00148 rsForEach(rs_script script, rs_allocation input, rs_allocation output,
00149 const void * usrData, size_t usrDataLen, const rs_script_call_t *);
00153 extern void __attribute__((overloadable))
00154 rsForEach(rs_script script, rs_allocation input, rs_allocation output,
00155 const void * usrData, size_t usrDataLen);
00159 extern void __attribute__((overloadable))
00160 rsForEach(rs_script script, rs_allocation input, rs_allocation output);
00161 #endif
00162
00163
00164
00165 #undef _RS_RUNTIME
00166
00167 #endif