comparison Renderer/Engine/spe/DataUpdate.cc @ 749:115edac878e2 draft

add DataLoad DataUpdate
author hiroki
date Mon, 25 Jan 2010 19:23:24 +0900
parents
children c0a8af52fa43
comparison
equal deleted inserted replaced
748:249e91be9152 749:115edac878e2
1 #include <stdio.h>
2 #include "DataUpdate.h"
3 #include "Func.h"
4 #include "string.h"
5
6 /* これは必須 */
7 SchedDefineTask(DataUpdate);
8
9 static int
10 run(SchedTask *s, void *rbuf, void *wbuf)
11 {
12
13 void *idata = (void*)s->get_input(rbuf, 0);
14 int size = (int)s->get_param(0);
15 int load_id = (int)s->get_param(1);
16 void *global_data = (void*)s->global_get(load_id);
17
18 memcpy(global_data,idata,size);
19
20 return 0;
21 }