comparison Renderer/Engine/spe/DataAllocate.cc @ 915:aa9728394194 draft

create_polygon_task ..not worked yet.
author yutaka@localhost.localdomain
date Fri, 23 Jul 2010 18:05:40 +0900
parents Renderer/Engine/spe/DataLoad.cc@c3b4ddd4ccdc
children b3a8545eb2fa
comparison
equal deleted inserted replaced
914:6286b3baf744 915:aa9728394194
1 #include <stdio.h>
2 #include <string.h>
3 #include "DataAllocate.h"
4 #include "Func.h"
5
6 /* これは必須 */
7 SchedDefineTask(DataAllocate);
8
9 static int
10 run(SchedTask *s, void *rbuf, void *wbuf)
11 {
12
13 void *idata = s->get_input(rbuf, 0);
14 long size = (long)s->get_param(0);
15 long load_id = (long)s->get_param(1);
16
17 void *buff = s->global_alloc(load_id, size);
18
19 if (idata != NULL) {
20 memcpy(buff,idata,size);
21 }
22
23 return 0;
24 }
25