Mercurial > hg > Members > kono > Cerium
view Renderer/Engine/task/DataLoad.cc @ 914:05696567d1d2
0 is filled on the spe side.
author | yutaka@localhost.localdomain |
---|---|
date | Thu, 22 Jul 2010 00:23:37 +0900 |
parents | 01b6d924a560 |
children |
line wrap: on
line source
#include <stdio.h> #include <string.h> #include "DataLoad.h" #include "Func.h" /* これは必須 */ SchedDefineTask(DataLoad); static int run(SchedTask *s, void *rbuf, void *wbuf) { long size = (long)s->get_param(0); long load_id = (long)s->get_param(1); //printf("size %d",sizeof(float)*length); s->global_alloc(load_id, size); //MemList *ml = s->createMemList(length,length); //s->global_set(load_id, (void *)ml); return 0; }