Mercurial > hg > Game > Cerium
annotate Renderer/Engine/spe/DataUpdate.cc @ 898:302ebfc75a79 draft
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 16 Jul 2010 19:00:49 +0900 |
parents | c3b4ddd4ccdc |
children | 37bd2b0694e2 |
rev | line source |
---|---|
749 | 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); | |
823 | 14 long size = (long)s->get_param(0); |
15 long load_id = (long)s->get_param(1); | |
749 | 16 void *global_data = (void*)s->global_get(load_id); |
17 | |
18 memcpy(global_data,idata,size); | |
19 | |
20 return 0; | |
21 } |